From 70c5c850dda2ab6d7bc6629710496f2bd5080260 Mon Sep 17 00:00:00 2001 From: Player Date: Thu, 10 Oct 2024 11:42:25 -0400 Subject: [PATCH] Register AbstractSecureClassLoader as parallel capable --- .../fabricmc/loader/impl/mrj/AbstractSecureClassLoader.java | 4 ++++ .../fabricmc/loader/impl/mrj/AbstractSecureClassLoader.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/java17/java/net/fabricmc/loader/impl/mrj/AbstractSecureClassLoader.java b/src/java17/java/net/fabricmc/loader/impl/mrj/AbstractSecureClassLoader.java index eeb46715c..83760b05c 100644 --- a/src/java17/java/net/fabricmc/loader/impl/mrj/AbstractSecureClassLoader.java +++ b/src/java17/java/net/fabricmc/loader/impl/mrj/AbstractSecureClassLoader.java @@ -22,4 +22,8 @@ public abstract class AbstractSecureClassLoader extends SecureClassLoader { public AbstractSecureClassLoader(String name, ClassLoader parent) { super(name, parent); } + + static { + ClassLoader.registerAsParallelCapable(); + } } diff --git a/src/main/java/net/fabricmc/loader/impl/mrj/AbstractSecureClassLoader.java b/src/main/java/net/fabricmc/loader/impl/mrj/AbstractSecureClassLoader.java index ca26ded32..6a3b3b7a7 100644 --- a/src/main/java/net/fabricmc/loader/impl/mrj/AbstractSecureClassLoader.java +++ b/src/main/java/net/fabricmc/loader/impl/mrj/AbstractSecureClassLoader.java @@ -22,4 +22,8 @@ public abstract class AbstractSecureClassLoader extends SecureClassLoader { public AbstractSecureClassLoader(String name, ClassLoader parent) { super(parent); } + + static { + ClassLoader.registerAsParallelCapable(); + } }