RFR: JDK-8221086: Shenandoah-specific workaround for JDK-8220671

Roman Kennke rkennke at redhat.com
Tue Mar 19 18:23:38 UTC 2019


JDK-8220671: Initialization race for non-JavaThread PtrQueue is making
troubles in Shenandoah's testing. While we're working out a generally
acceptable solution, we need a usable workaround in Shenandoah.

Bug:
https://bugs.openjdk.java.net/browse/JDK-8221086
Webrev:
http://cr.openjdk.java.net/~rkennke/JDK-8221086/webrev.01/

The proposed fix places a SuspendibleThreadJoiner around the
on_thread_attach() and on_thread_detach(), thereby preventing the race.

As soon as we figured out a solution for JDK-8220671 (which may well be
this 'workaround') we shall revert/overwrite this change.

Testing: many rounds of hotspot_gc_shenandoah and even more rounds of
the offending TestStringDedupStress.

Ok?

Roman

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <https://mail.openjdk.java.net/pipermail/hotspot-gc-dev/attachments/20190319/c2cea740/signature.asc>


More information about the hotspot-gc-dev mailing list