File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
c2me-base/src/main/java/com/ishland/c2me/base/common/scheduler Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,14 @@ public class SchedulingManager {
1818
1919 public static final int MAX_LEVEL = ChunkLevels .INACCESSIBLE + 1 ;
2020 private final ConcurrentMap <Long , FreeableTaskList > pos2Tasks = new ConcurrentHashMap <>();
21- private final Long2IntOpenHashMap prioritiesFromLevel = new Long2IntOpenHashMap ();
21+ private final Long2IntOpenHashMap prioritiesFromLevel = new Long2IntOpenHashMap () {
22+ @ Override
23+ protected void rehash (int newN ) {
24+ if (n < newN ) {
25+ super .rehash (newN );
26+ }
27+ }
28+ };
2229 private final StampedLock prioritiesLock = new StampedLock ();
2330 private final int id = COUNTER .getAndIncrement ();
2431 private volatile ChunkPos currentSyncLoad = null ;
You can’t perform that action at this time.
0 commit comments