mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Standardize how disableThreadSafetyCheck is done for Closeable, https://github.com/OpenHFT/Chronicle-Core/issues/245
This commit is contained in:
@@ -222,6 +222,8 @@ public abstract class VanillaChronicleHash<K,
|
||||
|
||||
preShutdownAction = privateAPI.getPreShutdownAction();
|
||||
skipCloseOnExitHook = privateAPI.skipCloseOnExitHook();
|
||||
|
||||
disableThreadSafetyCheck(true);
|
||||
}
|
||||
|
||||
public static IOException throwRecoveryOrReturnIOException(@NotNull final File file,
|
||||
@@ -683,12 +685,6 @@ public abstract class VanillaChronicleHash<K,
|
||||
return sizeInBytesWithoutTiers + allocatedExtraTierBulks * tierBulkSizeInBytes;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean threadSafetyCheck(boolean isUsed) {
|
||||
// disabled for chronicle map
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void performClose() {
|
||||
if (resources != null && resources.releaseManually()) {
|
||||
|
||||
Reference in New Issue
Block a user