RFR(XS): 8167298 assert(tp->base() != Type::AnyPtr) crash with Unsafe.compareAndExchangeObject*

Vladimir Ivanov vladimir.x.ivanov at oracle.com
Thu Oct 6 15:47:40 UTC 2016


Looks good.

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.

Best regards,
Vladimir Ivanov

On 10/6/16 6:40 PM, Roland Westrelin wrote:
>
> http://cr.openjdk.java.net/~roland/8167298/webrev.00/
>
> After matching the type of CompareAndExchangeP is lost.
>
> Roland.
>


More information about the hotspot-compiler-dev mailing list