< prev index next >
test/hotspot/jtreg/gc/CriticalNativeArgs.java
Print this page
rev 53506 : Fix indentation of CriticalNative* tests
@@ -38,24 +38,24 @@
*
* @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 {
+ System.loadLibrary("CriticalNative");
+ }
- static native boolean isNull(int[] a);
+ static native boolean isNull(int[] a);
- public static void main(String[] args) {
- int[] arr = new int[2];
+ public static void main(String[] args) {
+ int[] arr = new int[2];
- if (isNull(arr)) {
- throw new RuntimeException("Should not be null");
- }
+ if (isNull(arr)) {
+ throw new RuntimeException("Should not be null");
+ }
- if (!isNull(null)) {
- throw new RuntimeException("Should be null");
+ if (!isNull(null)) {
+ throw new RuntimeException("Should be null");
+ }
}
- }
}
< prev index next >