Commit Graph
1291 Commits
Author SHA1 Message Date
Peter Lawrey 1a36f1bbc6 Ensure the chunk size is a multiple of the alignment, closed https://github.com/OpenHFT/Chronicle-Map/issues/169 2019-05-09 12:28:04 +01:00
Peter Lawrey 6711903d2c Ensure HeapBytesStore has final fields for correct visibility, https://github.com/OpenHFT/Chronicle-Wire/issues/137 2019-05-08 19:27:15 +01:00
Jan Nielsen 8fdf65ebbd Polish: use intellij notnull and nullable. 2019-02-15 17:47:29 -07:00
Rob Austin dbecb72115 fixed https://github.com/OpenHFT/Chronicle-Map/issues/166 removed pos+1 2018-11-16 17:07:18 +00:00
Rob Austin 79c7701a52 fixed https://github.com/OpenHFT/Chronicle-Map/issues/166 void relocation(Data<V> newValue, long newEntrySize) to void relocation(newValue, newSizeOfEverythingBeforeValue);` 2018-11-16 17:05:09 +00:00
Rob Austin 075083455e corrected -> return (int) (sizeInBytes / chunkSize) + 1; 2018-11-15 21:27:46 +00:00
Rob Austin 9a02d8e250 change to s.freeExtra(pos+1, entrySizeInChunks, newSizeInChunks); 2018-11-15 21:17:26 +00:00
Rob Austin 2f6e9441d7 added a work around to address -> net.openhft.chronicle.map.MissSizedMapsTest 2018-11-15 18:45:27 +00:00
udaysagar2177 7b686ae152 return builder object after setting pre-shutdown action 2018-09-28 15:14:08 -07:00
Dmitry Pisklov 89b0b6b163 Merge pull request #159 from udaysagar2177/fix2
add pre-shutdown action to be executed inside ChronicleHashCloseOnExitHook
2018-09-26 11:23:10 +01:00
udaysagar2177 9eed0e3265 add pre-shutdown action to be executed inside ChronicleHashCloseOnExitHook.
This is useful when we want to do an orderly shutdown.
For example: To carry out graceful shutdown and explicitly control when a ChronicleHash
is closed, a pre-shutdown action can be a wait on a CountDownLatch that would be released
appropriately.
2018-09-21 00:36:04 -07:00
Dmitry Pisklov 471d1d3931 Closeable 2018-09-19 14:35:20 +01:00
Dmitry Pisklov 0bc8b226e4 Fix for Java 9+ 2018-09-18 19:15:25 +01:00
Roman Leventov cf24d82ba2 Merge pull request #154 from Zor-X-L/fallocate
try to preallocate space after RandomAccessFile#setLength()
2018-09-14 18:38:05 +03:00
Roman Leventov 502c6b701d Merge pull request #160 from OpenHFT/new-license
Change the license to Apache 2.0
2018-09-14 18:37:12 +03:00
Dmitry Pisklov 84fc20bb41 Copy-paste mistake 2018-09-14 15:40:56 +01:00
Peter Lawrey 806efd6d6e Include the size of the checksum in the entry size. 2018-09-14 15:16:20 +01:00
Peter Lawrey d076876265 Check for null. 2018-09-14 15:07:18 +01:00
Dmitry Pisklov db29e11bf2 Format 2018-09-14 13:42:32 +01:00
Dmitry Pisklov 57dfb00834 Merge branch 'master' into new-license 2018-09-14 13:31:40 +01:00
Dmitry Pisklov 1e1a086ea9 Change of license - update headers 2018-09-14 13:27:49 +01:00
peter lawrey b413c026ee Added ARM support for UnsafeMemory, https://github.com/OpenHFT/OpenHFT/issues/23 2018-09-14 11:26:13 +00:00
Peter Lawrey 337698b408 Added ARM support for UnsafeMemory, https://github.com/OpenHFT/OpenHFT/issues/23 2018-09-13 16:56:44 +01:00
Rob Austin 43a17b5606 removed -> if (localIdentifier == -1)
throw new IllegalStateException("localIdentifier should not be -1");
2018-09-06 22:05:51 +01:00
Rob Austin 914f27b588 added " public boolean tryReserve()" and some public methods to the build 2018-09-06 19:10:02 +01:00
Dmitry Pisklov 408db92fa4 Improve Java 11 support 2018-08-02 16:10:09 +01:00
Liu Xiao b6432ef796 use OS.isLinux() instead of Platform.isLinux() for consistency 2018-07-02 09:12:01 +08:00
Liu Xiao e78677120b code refactoring 2018-07-02 09:00:34 +08:00
Liu Xiao 89a35a108e try to preallocate space after RandomAccessFile#setLength() 2018-06-29 09:10:47 +08:00
Peter Lawrey 93e6626e45 #151 BytesMarshallable and interface value classes not supported. 2018-04-30 16:29:21 +01:00
Paweł Dąbrowski f2064f4db4 re OpenHFT/Chronicle-Map#134 Reflection based access to Cleaner compatible with 8 and 9+ JDKs. 2018-04-23 17:33:43 +02:00
Peter Lawrey e7c7dd8975 Code tidy after code inspections 2018-04-21 17:41:31 +01:00
Peter Lawrey 9323cf28a7 Standard code formatting 2018-04-21 10:49:49 +01:00
chip@chipfraser.co.uk bbf413d48d Make code compatible with jna 3.5.2 as well as 4.4.0 2017-11-27 14:01:12 +00:00
Rob Austin 93a642054e updated the bom to the latest map 2017-11-17 15:01:31 +00:00
epickrram d297d1e4ef update bom version, fix usage of Memory methods 2017-11-08 14:05:31 +00:00
Jerry Shea 657be1137b Minor doco tweaks 2017-09-12 14:04:35 +10:00
epickrram 5fc64e361c add exception cause 2017-07-26 11:22:24 +01:00
epickrram e720aeb47c allow replicated map impl to be overridden 2017-07-24 13:49:09 +01:00
epickrram 1d2ad6c827 allow TimeProvider clock source to be overridden for testing purposes 2017-07-14 13:56:24 +01:00
epickrram 679e156da2 skip key bytes when the replication entry is a delete 2017-07-14 13:21:56 +01:00
epickrram abe4297c9e skip over value bytes after reading replicated data 2017-07-14 12:18:37 +01:00
epickrram f058c5a9b4 promote replication builder attribute 2017-07-11 13:53:59 +01:00
epickrram 0201c6ae2c remove comments 2017-07-10 11:11:02 +01:00
epickrram ef3e0bbe69 allow Byteable instances that have maxSize() determined at runtime 2017-07-10 10:27:40 +01:00
Peter Lawrey 4b8b232f0d chronicle-bom 1.14.28-SNAPSHOT for all modules 2017-07-01 10:27:43 +01:00
Marc Strapetz ffab7840dd BigSegmentHeader: system property to specify LOCK_TIMEOUT_SECONDS
The default of 60 seconds may be too long if using Chronicle-Map in a
way that prevents real interprocess dead locks, i.e.
InterProcessDeadLockException can only be raised if a previous
Chronicle-Map process has been killed while holding a lock. In this
case, a timeout of e.g 5 seconds (or less) is sufficient to detect the
problem and possibly decide to invoke a recovery.
2017-06-06 19:42:43 +02:00
Marc Strapetz 957288bd5f BigSegmentHeader: comment fixed 2017-06-06 19:38:33 +02:00
leventov 3e903775f9 Revert method and field reordering 2017-06-04 12:33:41 -05:00
leventov 5c8c50ba6b Throw IllegalArgumentException in ConstantSizeMarshaller.writeSize(), if provided size is not equal to the constant size 2017-06-04 11:52:30 -05:00