hotspot/test/compiler/unsafe/SunMiscUnsafeAccessTestLong.java
changeset 38281 b28e2739b429
parent 38234 06263a71233c
child 39419 cc993a4ab581
equal deleted inserted replaced
38279:e15886fd3b96 38281:b28e2739b429
   181             assertEquals(r, false, "failing compareAndSwap long");
   181             assertEquals(r, false, "failing compareAndSwap long");
   182             long x = UNSAFE.getLong(base, offset);
   182             long x = UNSAFE.getLong(base, offset);
   183             assertEquals(x, 2L, "failing compareAndSwap long value");
   183             assertEquals(x, 2L, "failing compareAndSwap long value");
   184         }
   184         }
   185 
   185 
       
   186         UNSAFE.putLong(base, offset, 2L);
   186 
   187 
   187         // Compare set and get
   188         // Compare set and get
   188         {
   189         {
   189             long o = UNSAFE.getAndSetLong(base, offset, 1L);
   190             long o = UNSAFE.getAndSetLong(base, offset, 1L);
   190             assertEquals(o, 2L, "getAndSet long");
   191             assertEquals(o, 2L, "getAndSet long");