mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Improvements to ChronicleMap resource closing subsystem, making it more robust in exotic scenarios (OutOfMemoryError, StackOverflowError) and be able to close after incorrect attempt to close when a context is open in the same thread
This commit is contained in:
@@ -335,9 +335,9 @@ public class VanillaChronicleMap<K, V, R>
|
||||
cxt.set(contextHolder);
|
||||
return iterationContext;
|
||||
}
|
||||
ChainingInterface iterContext = contextHolder.get();
|
||||
if (iterContext != null) {
|
||||
return iterContext;
|
||||
ChainingInterface iterationContext = contextHolder.get();
|
||||
if (iterationContext != null) {
|
||||
return iterationContext;
|
||||
} else {
|
||||
throw new ChronicleHashClosedException(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user