RFR [9] 8160513: ClassNotFoundException sun.misc.GC when running Tomcat 9 with JDK 9

Daniel Fuchs daniel.fuchs at oracle.com
Wed Jul 27 15:01:09 UTC 2016

On 26/07/16 16:24, Chris Hegarty wrote:
> The GC.Daemon thread has no need of any user defined class loader,
> so should set its context class loader to null before starting, so as to
> not inadvertently retain a reference to the creating thread’s context
> class loader.
> http://cr.openjdk.java.net/~chegar/8160513/
> https://bugs.openjdk.java.net/browse/JDK-8160513

Looks good to me Chris.
Another possibility might be to use InnocuousThread?

best regards,

-- daniel

> -Chris.
> P.S. I added a detailed comment the JIRA issue, for those wondering
> why Tomcat is running into this.

More information about the core-libs-dev mailing list