test/runtime/memory/ReadFromNoaccessArea.java

Print this page
rev 6415 : [mq]: 8011397.WhiteBoxPermission

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.

@@ -24,11 +24,10 @@
 /*
  * @test
  * @summary Test that touching noaccess area in class ReservedHeapSpace results in SIGSEGV/ACCESS_VIOLATION
  * @library /testlibrary /testlibrary/whitebox
  * @build ReadFromNoaccessArea
- * @run main ClassFileInstaller sun.hotspot.WhiteBox
  * @run main ReadFromNoaccessArea
  */
 
 import com.oracle.java.testlibrary.*;
 import sun.hotspot.WhiteBox;

@@ -40,11 +39,11 @@
       System.out.println("ReadFromNoaccessArea tests is useful only on 64bit architecture. Passing silently.");
       return;
     }
 
     ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
-          "-Xbootclasspath/a:.",
+          "-Xbootclasspath/a:" + System.getProperty("test.classes"),
           "-XX:+UnlockDiagnosticVMOptions",
           "-XX:+WhiteBoxAPI",
           "-XX:+UseCompressedOops",
           "-XX:HeapBaseMinAddress=33G",
           DummyClassWithMainTryingToReadFromNoaccessArea.class.getName());