RFR: Shortcutting RP during final mark misses JNI Weak Refs

Roman Kennke rkennke at redhat.com
Thu Jun 8 14:17:28 UTC 2017


Oops.
Yes.
/Roman (from the beach)


Am 8. Juni 2017 16:05:44 MESZ schrieb Aleksey Shipilev <shade at redhat.com>:
>Turns out, there is landmine in RP code: we cannot shortcut on
>has_discovered_references() at our final mark reference processing,
>because that
>misses the JNI Weak Refs processing. Weak Refs are not counted towards
>"discovered" refs now, so we can omit marking them on shortcut,
>breaking the heap.
>
>Fix:
>http://cr.openjdk.java.net/~shade/shenandoah/refproc-shortcut-jniweak/webrev.01/
>
>Heap verifier fails on jcstress because of this.
>
>Thanks,
>-Aleksey

-- 
Sent from my FairPhone


More information about the shenandoah-dev mailing list