ClassValue rooting objects after it goes away?

Rémi Forax forax at univ-mlv.fr
Thu Aug 6 20:24:55 UTC 2015


No,
it's not expected !

Rémi 

Le 6 août 2015 20:26:43 CEST, Charles Oliver Nutter <headius at headius.com> a écrit :
>Pardon me if this has been discussed before, but we had a bug (with
>fix) reported today that seems to indicate that the JVM is rooting
>objects put into a ClassValue even if the ClassValue goes away.
>
>Here's the pull request: https://github.com/jruby/jruby/pull/3228
>
>And here's one example of the root trace leading back to our JRuby
>runtime. All the roots appear to be VM-level code:
>
>https://dl.dropboxusercontent.com/u/9213410/class-values-leak.png
>
>Is this expected? If we have to stuff a WeakReference into the
>ClassValue it seriously diminishes its utility to us.
>
>- Charlie
>_______________________________________________
>mlvm-dev mailing list
>mlvm-dev at openjdk.java.net
>http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev



More information about the mlvm-dev mailing list