mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Move all ChronicleMap closing logic into independent ChronicleHashResources. Reference contexts from ThreadLocals via ContextHolders and clear references to contexts on closing ChronicleMap. Make some closing procedures more paranoid than they were. Cache ChronicleMap's identityString and always return the same String from toIdentityString(). Add Throwables.returnOrSuppress().
This commit is contained in:
@@ -120,7 +120,7 @@ public class MapCloseTest {
|
||||
|
||||
map.get(1);
|
||||
Assert.assertEquals(1, map.allContexts().size());
|
||||
ChainingInterface cxt = map.allContexts().get(0).get();
|
||||
ChainingInterface cxt = map.allContexts().get(0).get().get();
|
||||
Assert.assertTrue(cxt == map.queryContext(1));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user