RFC 8175887: C1 value numbering handling of Unsafe.get*Volatile is incorrect?
Aleksey Shipilev
shade at redhat.com
Mon Feb 27 15:24:35 UTC 2017
On 02/27/2017 04:21 PM, Stuart Monteith wrote:
> Actually, rerunning without any jvmargs (which reduced the coverage when
> testing your patch), I get:
>
> org.openjdk.jcstress.tests.coherence.varHandles.fields.opaque.ShortTest
> [-client, -XX:-TieredCompilation]: Observed forbidden state: -1, 0
>
> org.openjdk.jcstress.tests.coherence.varHandles.fields.opaque.ShortTest
> [-server, -XX:+UnlockDiagnosticVMOptions, -XX:+StressLCM,
> -XX:+StressGCM]: Observed forbidden state: -1, 0
>
> org.openjdk.jcstress.tests.coherence.varHandles.fields.opaque.ShortTest
> [-server, -XX:-TieredCompilation, -XX:+UnlockDiagnosticVMOptions,
> -XX:+StressLCM, -XX:+StressGCM]: Observed forbidden state: -1, 0
>
> org.openjdk.jcstress.tests.coherence.varHandles.fields.opaque.ShortTest
> [-server]: Observed forbidden state: -1, 0
>
> org.openjdk.jcstress.tests.coherence.varHandles.fields.opaque.ShortTest
> [-server, -XX:-TieredCompilation]: Observed forbidden state: -1, 0
>
> org.openjdk.jcstress.tests.coherence.varHandles.fields.opaque.ShortTest
> [-client]: Observed forbidden state: -1, 0
>
> So what I said before was wrong, I do get the failures.
> Running with -XX:TieredStopAtLevel=1, I don't get failures.
Good. This is what I wanted to know for this patch.
> Given that -server == -client, all of the failing tests are either
> against C2 or tiered C1 & C2 compilation.
>
> Running with the options passed explicity, "-m tough", the tests pass with:
> -XX:TieredStopAtLevel=1 (Patched & unpatched)
>
> Fails with:
> -XX:-TieredCompilation "
>
> No failures with:
> -XX:-TieredComplation -Xcomp
>
> My other two machines doen't exhibit the failure.
Ok, let's discuss that one separately. These failures seem unrelated to this
issue with C1, and most probably indicate some other peculiar issue.
Thanks,
-Aleksey
Thanks,
-Aleksey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20170227/2ea7ea67/signature.asc>
More information about the hotspot-compiler-dev
mailing list