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

Roger Riggs rriggs at openjdk.java.net
Mon Mar 28 15:48:49 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.

This pull request has now been integrated.

Changeset: f0282d7d
Author:    Roger Riggs <rriggs at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/f0282d7def8c043d95e9b86da926b7d45224c31c
Stats:     109 lines in 3 files changed: 91 ins; 6 del; 12 mod

8279488: ProcessBuilder inherits contextClassLoader when spawning a process reaper thread

Reviewed-by: alanb

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

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


More information about the core-libs-dev mailing list