mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Remove an implied Iterator which Escape Analysis might not remove, closes https://github.com/OpenHFT/Chronicle-Map/issues/177
This commit is contained in:
Regular → Executable
+2
-1
@@ -131,7 +131,8 @@ public abstract class Chaining extends ChainingInterface {
|
||||
Class<? extends T> contextClass, BiFunction<ChainingInterface,
|
||||
VanillaChronicleMap, T> createChaining,
|
||||
VanillaChronicleMap map) {
|
||||
for (ChainingInterface context : contextChain) {
|
||||
for (int i = 0; i < contextChain.size(); i++) {
|
||||
ChainingInterface context = contextChain.get(i);
|
||||
if (context.getClass() == contextClass && !context.usedInit()) {
|
||||
return initUsedAndReturn(map, context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user