< prev index next >

test/hotspot/jtreg/runtime/appcds/CommandLineFlagCombo.java

Print this page




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 /*
  26  * @test CommandLineFlagCombo
  27  * @requires vm.cds



  28  * @requires (vm.gc=="null")
  29  * @summary Test command line flag combinations that
  30  *          could likely affect the behaviour of AppCDS
  31  * @library /test/lib
  32  * @modules java.base/jdk.internal.misc
  33  *          java.management
  34  *          jdk.jartool/sun.tools.jar
  35  * @build sun.hotspot.WhiteBox
  36  * @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission
  37  * @compile test-classes/Hello.java
  38  * @run main/othervm/timeout=240 -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. CommandLineFlagCombo
  39  */
  40 
  41 import jdk.test.lib.BuildHelper;
  42 import jdk.test.lib.Platform;
  43 import jdk.test.lib.process.OutputAnalyzer;
  44 
  45 import sun.hotspot.code.Compiler;
  46 
  47 public class CommandLineFlagCombo {




   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 /*
  26  * @test CommandLineFlagCombo
  27  * @requires vm.cds.archived.java.heap
  28  * @comment This test explicitly chooses the type of GC to be used by sub-processes. It may conflict with the GC type set
  29  * via the -vmoptions command line option of JTREG. vm.gc==null will help the test case to discard the explicitly passed
  30  * vm options.
  31  * @requires (vm.gc=="null")
  32  * @summary Test command line flag combinations that
  33  *          could likely affect the behaviour of AppCDS
  34  * @library /test/lib
  35  * @modules java.base/jdk.internal.misc
  36  *          java.management
  37  *          jdk.jartool/sun.tools.jar
  38  * @build sun.hotspot.WhiteBox
  39  * @run driver ClassFileInstaller sun.hotspot.WhiteBox sun.hotspot.WhiteBox$WhiteBoxPermission
  40  * @compile test-classes/Hello.java
  41  * @run main/othervm/timeout=240 -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. CommandLineFlagCombo
  42  */
  43 
  44 import jdk.test.lib.BuildHelper;
  45 import jdk.test.lib.Platform;
  46 import jdk.test.lib.process.OutputAnalyzer;
  47 
  48 import sun.hotspot.code.Compiler;
  49 
  50 public class CommandLineFlagCombo {


< prev index next >