< prev index next >

test/hotspot/jtreg/gc/CriticalNativeArgs.java

Print this page
rev 53506 : Fix indentation of CriticalNative* tests

*** 38,61 **** * * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xcomp -Xmx256M -XX:+CriticalJNINatives CriticalNativeArgs * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=traversal -Xcomp -Xmx512M -XX:+CriticalJNINatives CriticalNativeArgs */ public class CriticalNativeArgs { ! static { ! System.loadLibrary("CriticalNative"); ! } ! static native boolean isNull(int[] a); ! public static void main(String[] args) { ! int[] arr = new int[2]; ! if (isNull(arr)) { ! throw new RuntimeException("Should not be null"); ! } ! if (!isNull(null)) { ! throw new RuntimeException("Should be null"); } - } } --- 38,61 ---- * * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -Xcomp -Xmx256M -XX:+CriticalJNINatives CriticalNativeArgs * @run main/othervm/native -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+UnlockExperimentalVMOptions -XX:ShenandoahGCHeuristics=traversal -Xcomp -Xmx512M -XX:+CriticalJNINatives CriticalNativeArgs */ public class CriticalNativeArgs { ! static { ! System.loadLibrary("CriticalNative"); ! } ! static native boolean isNull(int[] a); ! public static void main(String[] args) { ! int[] arr = new int[2]; ! if (isNull(arr)) { ! throw new RuntimeException("Should not be null"); ! } ! if (!isNull(null)) { ! throw new RuntimeException("Should be null"); ! } } }
< prev index next >