RFR (S) 8224522: Shenandoah should apply barriers on deoptimization
Aleksey Shipilev
shade at redhat.com
Tue May 21 20:06:40 UTC 2019
Bug:
https://bugs.openjdk.java.net/browse/JDK-8224522
Fix:
http://cr.openjdk.java.net/~shade/8224522/webrev.01/
Shenandoah, like ZGC, needs to make sure that the oops that are in deoptimized frames are passed
through the barriers. Otherwise deoptimization might sneak bad oops into into Java heap. This is a
very rare, hard to replicate, but still fatal error. The fix copies what ZGC code already does.
Since Shenandoah also runs with compressed oops, we need to take care of "narrowoop" path as well. I
made the oop/narrowoop as close as possible style-wise.
Testing: hotspot_gc_shenandoah; build with -shenandoahgc; jdk-submit (running)
--
Thanks,
-Aleksey
More information about the shenandoah-dev
mailing list