RFR: 8279488: ProcessBuilder inherits contextClassLoader when spawning a process reaper thread

Roger Riggs rriggs at openjdk.java.net
Tue Jan 25 20:27:29 UTC 2022


On Tue, 18 Jan 2022 15:57:58 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

> The thread factory used to create the process reaper threads unnecessarily inherits the callers thread context classloader.
> The result is retention of the class loader.
> 
> The thread factory used for the pool of process reaper threads is modified to use an InnocuousThread with a given stacksize.
> The test verifies that the process reaper threads have a null context classloader.

@AlanBateman Can you take a look at this use of InnocuousThread.  Thanks

-------------

PR: https://git.openjdk.java.net/jdk/pull/7131


More information about the core-libs-dev mailing list