Integrated: 8321299: runtime/logging/ClassLoadUnloadTest.java doesn't reliably trigger class unloading

Matias Saavedra Silva matsaave at openjdk.org
Wed Mar 13 16:57:23 UTC 2024


On Mon, 11 Mar 2024 21:21:24 GMT, Matias Saavedra Silva <matsaave at openjdk.org> wrote:

> ClassLoadUnloadTest.java passes by accident because an unrelated LambdaForm is being unloaded. The test class, `test.Empty` should be loaded by a custom class loader and then subsequently unloaded, however this is not actually occurring due to the sub-process not receiving the class path. This patch modifies `ClassUnloadCommon`, so it may accept a string containing the classlist, and `ClassLoadUnloadTest.java` so it checks specifically for `test.Empty` to be unloaded. Verified with tier1-5 tests.

This pull request has now been integrated.

Changeset: 5cae7d20
Author:    Matias Saavedra Silva <matsaave at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/5cae7d20adf9828e05d3cd2823c6b95ee1ab6db4
Stats:     6 lines in 1 file changed: 3 ins; 0 del; 3 mod

8321299: runtime/logging/ClassLoadUnloadTest.java doesn't reliably trigger class unloading

Reviewed-by: coleenp, dholmes

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

PR: https://git.openjdk.org/jdk/pull/18207


More information about the hotspot-runtime-dev mailing list