mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-22 16:17:44 +00:00
e
This commit is contained in:
1 parent
47990cde46
commit
c30de98449
1 file changed
+4
-6
@@ -443,7 +443,6 @@ public class Mantle {
|
||||
dynamicThreads.set(IrisSettings.get().getPerformance().getTectonicUnloadThreads());
|
||||
}
|
||||
}
|
||||
int dth = dynamicThreads.get();
|
||||
|
||||
adjustedIdleDuration.set(baseIdleDuration);
|
||||
|
||||
@@ -501,10 +500,10 @@ public class Mantle {
|
||||
}
|
||||
}
|
||||
|
||||
// BurstExecutor burstExecutor = new BurstExecutor(Executors.newFixedThreadPool(1), toUnload.size());
|
||||
BurstExecutor burstExecutor = new BurstExecutor(Executors.newFixedThreadPool(dynamicThreads.get()), toUnload.size());
|
||||
|
||||
for (Long i : toUnload) {
|
||||
// burstExecutor.queue(() -> {
|
||||
burstExecutor.queue(() -> {
|
||||
hyperLock.withLong(i, () -> {
|
||||
TectonicPlate m = loadedRegions.get(i);
|
||||
if (m != null) {
|
||||
@@ -519,10 +518,9 @@ public class Mantle {
|
||||
}
|
||||
}
|
||||
});
|
||||
// });
|
||||
});
|
||||
}
|
||||
// burstExecutor.complete();
|
||||
|
||||
burstExecutor.complete();
|
||||
} finally {
|
||||
io.set(false);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user