RFR (S) 8019968: Reference CAS induces GC store barrier even on failure (original) (raw)
Andrew Dinn adinn at redhat.com
Wed Jul 29 09:24:38 UTC 2015
- Previous message: RFR (S) 8019968: Reference CAS induces GC store barrier even on failure
- Next message: RFR (S) 8019968: Reference CAS induces GC store barrier even on failure
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 29/07/15 09:58, Aleksey Shipilev wrote:
I would like to suggest a fix for: https://bugs.openjdk.java.net/browse/JDK-8019968
In short, current reference CAS intrinsic blindly emits postbarrier, ignoring the CAS result. In some cases, notably contended CAS spin-loops, we fail the CAS a lot, and thus go for a postbarrier excessively. Instead, we can conditionalize on the result of the store itself, and put the postbarrier only on success path: http://cr.openjdk.java.net/~shade/8019968/webrev.01/ More performance results here: http://cr.openjdk.java.net/~shade/8019968/notes.txt
Nice! The code looks fine and your test results are very convincing. I'll be interested to see how this looks on AArch64.
That said, I am afraid you still need a Reviewer!
regards,
Andrew Dinn
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2
iQEcBAEBAgAGBQJVuJvWAAoJEGnaNq4xxcSz4wMH/3azdliPZzS5ZaS4d67JHTc/ RoX9Mq6m+Aa5PwqTT5luq68B4NIuWVu808gK4iDA0+tS2DSrpgaIyzTJm7HGz94o CYoQRxTG2git9QD1nILJBi40s1OI7zyP4GK0I6sa/2Pm6BnLZ3uA/tXo2UGthYBO nHAb/i9DHR8i5/gIKNLezUnkRNElQRkL32cIdDxt2qlRA/KkKR1GZM+8C4SFoHxY 2SSPewZkOofF9ewByGn/aboQWBSMW6vnPNGjLm4ODSuc9PqtV3XUM3WNyL83yT9Z PIZfUlYn8vAo+POgKsrRro0ZOj6njjG4UIDpJYp01tN8+VYpu1XquM8uhXU6BY8= =GdV6 -----END PGP SIGNATURE-----
- Previous message: RFR (S) 8019968: Reference CAS induces GC store barrier even on failure
- Next message: RFR (S) 8019968: Reference CAS induces GC store barrier even on failure
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the hotspot-compiler-dev mailing list