9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-25 09:59:15 +00:00

Disable VT4ProfileExecutor & VT4BukkitScheduler by default

Default disable VT4ProfileExecutor to avoid error code 429 when fetched profile from mojang server.

If related logic in plugins may not designed for VirtualThread, then virtual thread pinning may happen and causes problems.

So only let user to enable if needed.

For reference:
https://stackoverflow.com/questions/76618264/synchronize-block-pinning-virtual-thread
https://openjdk.org/jeps/491
This commit is contained in:
Dreeam
2025-10-06 13:00:50 -04:00
parent 69a59f9fac
commit 02a2e3e9ee
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ public class VT4BukkitScheduler extends ConfigModules {
return EnumConfigCategory.PERF.getBaseKeyName();
}
public static boolean enabled = true;
public static boolean enabled = false;
@Override
public void onLoaded() {

View File

@@ -9,7 +9,7 @@ public class VT4ProfileExecutor extends ConfigModules {
return EnumConfigCategory.PERF.getBaseKeyName();
}
public static boolean enabled = true;
public static boolean enabled = false;
@Override
public void onLoaded() {