HCOLL-400 forbid nested update and write locks inside iteration contexts; rename IterationContextInterface to IterationContext; update stage-compiler dependency

This commit is contained in:
leventov
2015-10-09 15:09:32 +03:00
parent b02d738cf2
commit cad3d3abfe
14 changed files with 253 additions and 21 deletions
@@ -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;
}