mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
reverted AbstractClosable
This commit is contained in:
@@ -69,7 +69,7 @@ import static net.openhft.chronicle.map.ChronicleHashCorruptionImpl.format;
|
||||
import static net.openhft.chronicle.map.ChronicleHashCorruptionImpl.report;
|
||||
|
||||
public abstract class VanillaChronicleHash<K, C extends HashEntry<K>, SC extends HashSegmentContext<K, ?>,
|
||||
ECQ extends ExternalHashQueryContext<K>> extends AbstractCloseable
|
||||
ECQ extends ExternalHashQueryContext<K>>
|
||||
implements ChronicleHash<K, C, SC, ECQ>, Marshallable {
|
||||
|
||||
public static final long TIER_COUNTERS_AREA_SIZE = 64;
|
||||
@@ -681,14 +681,12 @@ public abstract class VanillaChronicleHash<K, C extends HashEntry<K>, SC extends
|
||||
|
||||
|
||||
@Override
|
||||
protected void performClose() {
|
||||
if (resources == null || !resources.releaseManually())
|
||||
return;
|
||||
|
||||
cleanupOnClose();
|
||||
public final void close() {
|
||||
if (resources != null && resources.releaseManually()) {
|
||||
cleanupOnClose();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected void cleanupOnClose() {
|
||||
// Releases nothing after resources.releaseManually(), only removes the cleaner
|
||||
// from the internal linked list of all cleaners.
|
||||
|
||||
Reference in New Issue
Block a user