8152483: Fix a couple of tests that are being incorrectly run on C1 after jigsaw M3

Reviewed-by: ctornqvi, kvn
This commit is contained in:
Alejandro Murillo 2016-03-22 18:41:09 -07:00
parent 9978f9b065
commit 1bd14828a0
2 changed files with 13 additions and 3 deletions

View file

@ -58,6 +58,7 @@ import jdk.internal.org.objectweb.asm.Opcodes;
import jdk.internal.org.objectweb.asm.Type;
import jdk.internal.vm.annotation.Stable;
import jdk.test.lib.Asserts;
import jdk.test.lib.Platform;
import jdk.internal.misc.Unsafe;
import java.io.IOException;
@ -73,9 +74,11 @@ public class UnsafeGetConstantField {
static final Unsafe U = Unsafe.getUnsafe();
public static void main(String[] args) {
testUnsafeGetAddress();
testUnsafeGetField();
testUnsafeGetFieldUnaligned();
if (Platform.isServer()) {
testUnsafeGetAddress();
testUnsafeGetField();
testUnsafeGetFieldUnaligned();
}
System.out.println("TEST PASSED");
}