RFR(XS): 8167298 assert(tp->base() != Type::AnyPtr) crash with Unsafe.compareAndExchangeObject*
Roland Westrelin
rwestrel at redhat.com
Fri Oct 7 11:02:45 UTC 2016
> Looks good.
Thanks for the review, Vladimir.
> test/compiler/intrinsics/unsafe/TestCAEAntiDep.java:
>
> 46 try {
> 47 Field f =
> jdk.internal.misc.Unsafe.class.getDeclaredField("theUnsafe");
> 48 f.setAccessible(true);
> 49 UNSAFE = (jdk.internal.misc.Unsafe) f.get(null);
> 50 } catch (Exception e) {
> 51 throw new RuntimeException("Unable to get Unsafe
> instance.", e);
> 52 }
>
> No need in that hack anymore. getUnsafe() works fine in internal version.
Thanks for the comment. I uploaded a webrev with a fixed test case:
http://cr.openjdk.java.net/~roland/8167298/webrev.01/
As usual, I need a sponsor. I'll send a ready to push changeset to the
taker!
Roland.
More information about the hotspot-compiler-dev
mailing list