RFR: 8376023: Reconcile ClassUnloader with ClassUnloadCommon
Chris Plummer
cjplummer at openjdk.org
Tue Feb 10 03:26:31 UTC 2026
On Tue, 3 Feb 2026 14:24:21 GMT, SendaoYan <syan at openjdk.org> wrote:
> Hi all,
>
> This PR merge test/hotspot/jtreg/vmTestbase/nsk/share/ClassUnloader.java to test/lib/jdk/test/lib/classloader/ClassUnloadCommon.java, and make the vmTestbase tests use the ClassUnloadCommon.
>
> The core method in test/hotspot/jtreg/vmTestbase/nsk/share/ClassUnloader.java is `boolean unloadClass()`, and the core method in test/lib/jdk/test/lib/classloader/ClassUnloadCommon.java is `Set<String> triggerUnloading(List<String> classNames)`, it's not easy to combile these two methods to one. So I keep all these two methods.
>
> Additional testing:
>
> - [x] Full jtreg tests include vmTestbase
Was there any merger of the functionality of these two files, or did you just move the ClassUnloader.java contents into ClassUnloadCommon.java?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/29545#issuecomment-3843942798
More information about the core-libs-dev
mailing list