RFR: 8299072: java_lang_ref_Reference::clear_referent should be GC agnostic

Erik Österlund eosterlund at openjdk.org
Thu Dec 22 14:46:47 UTC 2022


On Tue, 20 Dec 2022 08:12:41 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> The current java_lang_ref_Reference::clear_referent implementation performs a raw reference clear. That doesn't work well with upcoming GC algorithms. It should be made GC agnostic by going through the normal access API.
>
> So `clear_referent` is made GC agnostic, but then all the existing GC's are changed to use the original raw version? Why do they not use the GC agnostic version - performance?

Thanks for the review, @dholmes-ora!

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

PR: https://git.openjdk.org/jdk/pull/11736


More information about the hotspot-dev mailing list