RFR: 8376023: Reconcile ClassUnloader with ClassUnloadCommon

SendaoYan syan at openjdk.org
Tue Feb 10 03:26:33 UTC 2026


On Sat, 7 Feb 2026 02:57:35 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

> > > Was there any merger of the functionality of these two files, or did you just move the ClassUnloader.java contents into ClassUnloadCommon.java?
> > 
> > 
> > I almost just move the ClassUnloader.java contents into ClassUnloaderCommon.java, except for make both file use the same variable `MAX_UNLOAD_ATTEMPS`.
> 
> I'm just wondering if this change is worth doing if there is no added code sharing going on. What is the motivation for this?

I agree with you. Maybe I misunderstood the intention of [JDK-8376023](https://bugs.openjdk.org/browse/JDK-8376023)

@coleenp Could you give me some advies?

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

PR Comment: https://git.openjdk.org/jdk/pull/29545#issuecomment-3863545626


More information about the serviceability-dev mailing list