1.18.2 compiles successfuly now
This commit is contained in:
parent
d8d13a67c4
commit
f1dee4ff69
10 changed files with 27 additions and 28 deletions
|
@ -1676,7 +1676,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ data = ChunkSerializer.saveChunk(this.world, this.chunk, this.asyncSaveData);
|
||||
+ PaperFileIOThread.LOGGER.info("Successfully serialized chunk data for task: " + this.toString() + " synchronously");
|
||||
+ } catch (final Throwable ex1) {
|
||||
+ PaperFileIOThread.LOGGER.fatal("Failed to synchronously serialize unloading chunk data for task: " + this.toString() + "! Chunk data will be lost", ex1);
|
||||
+ PaperFileIOThread.LOGGER.error("Failed to synchronously serialize unloading chunk data for task: " + this.toString() + "! Chunk data will be lost", ex1);
|
||||
+ }
|
||||
+
|
||||
+ ChunkSaveTask.this.complete(data);
|
||||
|
@ -1933,7 +1933,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ globalWorkers[i].setName("Paper Async Chunk Task Thread #" + i);
|
||||
+ globalWorkers[i].setPriority(Thread.NORM_PRIORITY - 1);
|
||||
+ globalWorkers[i].setUncaughtExceptionHandler((final Thread thread, final Throwable throwable) -> {
|
||||
+ PaperFileIOThread.LOGGER.fatal("Thread '" + thread.getName() + "' threw an uncaught exception!", throwable);
|
||||
+ PaperFileIOThread.LOGGER.error("Thread '" + thread.getName() + "' threw an uncaught exception!", throwable);
|
||||
+ });
|
||||
+
|
||||
+ globalWorkers[i].start();
|
||||
|
@ -1943,7 +1943,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ globalWorkers[threads - 1].setName("Paper Async Chunk Urgent Task Thread");
|
||||
+ globalWorkers[threads - 1].setPriority(Thread.NORM_PRIORITY+1);
|
||||
+ globalWorkers[threads - 1].setUncaughtExceptionHandler((final Thread thread, final Throwable throwable) -> {
|
||||
+ PaperFileIOThread.LOGGER.fatal("Thread '" + thread.getName() + "' threw an uncaught exception!", throwable);
|
||||
+ PaperFileIOThread.LOGGER.error("Thread '" + thread.getName() + "' threw an uncaught exception!", throwable);
|
||||
+ });
|
||||
+ globalWorkers[threads - 1].setLowestPriorityToPoll(PrioritizedTaskQueue.HIGHEST_PRIORITY);
|
||||
+ globalWorkers[threads - 1].start();
|
||||
|
@ -1967,7 +1967,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ this.workers[i].setName("Async chunk loader thread #" + i + " for world: " + world.getWorld().getName());
|
||||
+ this.workers[i].setPriority(Thread.NORM_PRIORITY - 1);
|
||||
+ this.workers[i].setUncaughtExceptionHandler((final Thread thread, final Throwable throwable) -> {
|
||||
+ PaperFileIOThread.LOGGER.fatal("Thread '" + thread.getName() + "' threw an uncaught exception!", throwable);
|
||||
+ PaperFileIOThread.LOGGER.error("Thread '" + thread.getName() + "' threw an uncaught exception!", throwable);
|
||||
+ });
|
||||
+
|
||||
+ this.workers[i].start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue