eliminate a possibility for the loader to lock up
This commit is contained in:
parent
863568cd48
commit
2985d65193
1 changed files with 7 additions and 0 deletions
|
@ -134,6 +134,13 @@ public class CustomClassLoader extends ClassLoader implements Util {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized Class<?> loadClass(String name) throws ClassNotFoundException {
|
||||
synchronized (Launch.classLoader) {
|
||||
return super.loadClass(name);
|
||||
}
|
||||
}
|
||||
|
||||
private Class<?> loadBBClass(String name) {
|
||||
/*Set<ClassLoader> uniqueClassLoaders = Thread.getAllStackTraces().keySet().stream()
|
||||
.map(Thread::getContextClassLoader)
|
||||
|
|
Loading…
Add table
Reference in a new issue