diff --git a/patches/server/0061-Remove-bootstrap-executor.patch b/patches/server/0061-Remove-bootstrap-executor.patch new file mode 100644 index 0000000..66216de --- /dev/null +++ b/patches/server/0061-Remove-bootstrap-executor.patch @@ -0,0 +1,27 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: NONPLAY +Date: Tue, 29 Nov 2022 13:11:58 +0300 +Subject: [PATCH] Remove bootstrap executor + +License: GPL-3.0 (https://www.gnu.org/licenses/gpl-3.0.html) + +This patch is based on the following patch: +"completely remove bootstrapExecutor" +By: foss-mc <69294560+foss-mc@users.noreply.github.com> +As part of: Patina (https://github.com/PatinaMC/Patina) +Licensed under: GPL-3.0 (https://www.gnu.org/licenses/gpl-3.0.html) + +diff --git a/src/main/java/net/minecraft/Util.java b/src/main/java/net/minecraft/Util.java +index e14245a77b40fca4bacf82295ad390339aba08a9..d84c721ed64cf927ccc9884235b22414298ce3ed 100644 +--- a/src/main/java/net/minecraft/Util.java ++++ b/src/main/java/net/minecraft/Util.java +@@ -80,8 +80,8 @@ public class Util { + private static final int DEFAULT_MAX_THREADS = 255; + private static final String MAX_THREADS_SYSTEM_PROPERTY = "max.bg.threads"; + private static final AtomicInteger WORKER_COUNT = new AtomicInteger(1); +- private static final ExecutorService BOOTSTRAP_EXECUTOR = makeExecutor("Bootstrap", -2); // Paper - add -2 priority + private static final ExecutorService BACKGROUND_EXECUTOR = AsyncExecutor.instance; // DivineMC - centralized async execution - remove background executor ++ private static final ExecutorService BOOTSTRAP_EXECUTOR = BACKGROUND_EXECUTOR; // DivineMC - Patina - remove bootstrap executor + // Paper start - don't submit BLOCKING PROFILE LOOKUPS to the world gen thread + public static final ExecutorService PROFILE_EXECUTOR = Executors.newFixedThreadPool(2, new java.util.concurrent.ThreadFactory() { + diff --git a/patches/todo/0061-Implement-No-Chat-Reports.patch b/patches/todo/0062-Implement-No-Chat-Reports.patch similarity index 100% rename from patches/todo/0061-Implement-No-Chat-Reports.patch rename to patches/todo/0062-Implement-No-Chat-Reports.patch