On Mon, 29 Nov 2021 13:47:19 GMT, Roman Kennke <rken...@openjdk.org> wrote:
> I don't quite understand this: If the Class object is still reachable by the > app, 1. a weak reference would not get cleared and 2. the Class's ClassLoader would not get unloaded. ...but the ObjectStreamClass instance could still get GC-ed, because it is held in the map using WeakReference<ObjectStreamClass>. The fact that associated Class is still reachable does not mean that the ObjectStreamClass instance is! ------------- PR: https://git.openjdk.java.net/jdk/pull/6375