mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-400 forbid nested update and write locks inside iteration contexts; rename IterationContextInterface to IterationContext; update stage-compiler dependency
This commit is contained in:
@@ -317,7 +317,7 @@ public class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super
|
||||
return iterContext;
|
||||
}
|
||||
|
||||
public IterationContextInterface<K, V, ?> iterationContext() {
|
||||
public IterationContext<K, V, ?> iterationContext() {
|
||||
return i().getContext(CompiledMapIterationContext.class,
|
||||
ci -> new CompiledMapIterationContext<>(ci, this));
|
||||
}
|
||||
@@ -342,7 +342,7 @@ public class VanillaChronicleMap<K, KI, MKI extends MetaBytesInterop<K, ? super
|
||||
|
||||
@Override
|
||||
public MapSegmentContext<K, V, ?> segmentContext(int segmentIndex) {
|
||||
IterationContextInterface<K, V, ?> c = iterationContext();
|
||||
IterationContext<K, V, ?> c = iterationContext();
|
||||
c.initSegmentIndex(segmentIndex);
|
||||
return c;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user