RFR: 8321299: runtime/logging/ClassLoadUnloadTest.java doesn't reliably trigger class unloading
Matias Saavedra Silva
matsaave at openjdk.org
Mon Mar 11 21:26:21 UTC 2024
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.
-------------
Commit messages:
- 8321299: runtime/logging/ClassLoadUnloadTest.java doesn't reliably trigger class unloading
Changes: https://git.openjdk.org/jdk/pull/18207/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18207&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8321299
Stats: 14 lines in 2 files changed: 11 ins; 0 del; 3 mod
Patch: https://git.openjdk.org/jdk/pull/18207.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/18207/head:pull/18207
PR: https://git.openjdk.org/jdk/pull/18207
More information about the hotspot-runtime-dev
mailing list