Skip to content

Commit

Permalink
Workaround for class loading deadlocks caused by ThrowableProxyHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Apr 5, 2024
1 parent 5ef03c5 commit bd4385f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ internal class PatchedClassLoader : ClassLoader(PAPER_CLASS_LOADER.parent) {
// if yes, this indicates a recursive call (PatchedClassLoader) or a call that will become recursive (NovaClassLoader)
if (className == "xyz.xenondevs.nova.loader.NovaClassLoader" || className == "xyz.xenondevs.nova.transformer.PatchedClassLoader")
return false

// does not indicate a recursive call, but is the most common class loading deadlock cause,
// so it is included here until the root cause is resolved (removal of PatchedClassLoader)
if (className == "org.apache.logging.log4j.core.impl.ThrowableProxyHelper")
return false
}

return true
Expand Down

0 comments on commit bd4385f

Please sign in to comment.