--- a/hotspot/test/compiler/unsafe/SunMiscUnsafeAccessTestObject.java Tue May 03 20:36:17 2016 +0000
+++ b/hotspot/test/compiler/unsafe/SunMiscUnsafeAccessTestObject.java Wed May 04 17:17:10 2016 +0300
@@ -40,6 +40,7 @@
public class SunMiscUnsafeAccessTestObject {
static final int ITERS = Integer.getInteger("iters", 1);
+ static final int WEAK_ATTEMPTS = Integer.getInteger("weakAttempts", 10);
static final sun.misc.Unsafe UNSAFE;
@@ -136,7 +137,6 @@
-
UNSAFE.putObject(base, offset, "foo");
// Compare
@@ -155,7 +155,6 @@
}
-
// Compare set and get
{
Object o = UNSAFE.getAndSetObject(base, offset, "foo");
@@ -168,4 +167,3 @@
}
-