< prev index next >

src/java.rmi/share/classes/sun/rmi/transport/GC.java

Print this page
rev 14891 : 8160513: ClassNotFoundException sun.misc.GC when running Tomcat 9 with JDK 9
Reviewed-by:

*** 142,151 **** --- 142,156 ---- tgn != null; tg = tgn, tgn = tg.getParent()); Daemon d = new Daemon(tg); d.setDaemon(true); d.setPriority(Thread.MIN_PRIORITY + 1); + /* Set the context class loader to null in order to avoid + * keeping a strong reference to the TCCL of whatever + * thread triggered the creation of this Daemon. + */ + d.setContextClassLoader(null); d.start(); GC.daemon = d; return null; }}; AccessController.doPrivileged(pa);
< prev index next >