test/gc/g1/TestHumongousCodeCacheRoots.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.

@@ -26,11 +26,10 @@
  * @key regression
  * @key gc
  * @bug 8027756
  * @library /testlibrary /testlibrary/whitebox
  * @build TestHumongousCodeCacheRoots
- * @run main ClassFileInstaller sun.hotspot.WhiteBox
  * @summary Humongous objects may have references from the code cache
  * @run main TestHumongousCodeCacheRoots
 */
 
 import com.oracle.java.testlibrary.*;

@@ -91,11 +90,11 @@
    */
   public static OutputAnalyzer runWhiteBoxTest(String[] vmargs, String classname, String[] arguments, boolean useTestDotJavaDotOpts) throws Exception {
     ArrayList<String> finalargs = new ArrayList<String>();
 
     String[] whiteboxOpts = new String[] {
-      "-Xbootclasspath/a:.",
+      "-Xbootclasspath/a:" + System.getProperty("test.classes"),
       "-XX:+UnlockDiagnosticVMOptions", "-XX:+WhiteBoxAPI",
       "-cp", System.getProperty("java.class.path"),
     };
 
     if (useTestDotJavaDotOpts) {