8146530: [testbug] some tests fail because the compiler is using Java heap memory
authorsjohanss
Thu, 09 Jun 2016 13:24:44 +0200
changeset 39226 8151452e26b2
parent 39225 ff6081f6f96b
child 39227 59ace61f7436
8146530: [testbug] some tests fail because the compiler is using Java heap memory Reviewed-by: jwilhelm, jmasa, kvn
hotspot/test/gc/arguments/TestTargetSurvivorRatioFlag.java
--- a/hotspot/test/gc/arguments/TestTargetSurvivorRatioFlag.java	Thu Jun 09 00:53:07 2016 +0200
+++ b/hotspot/test/gc/arguments/TestTargetSurvivorRatioFlag.java	Thu Jun 09 13:24:44 2016 +0200
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+* Copyright (c) 2015, 2016, 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
@@ -25,6 +25,8 @@
  * @test TestTargetSurvivorRatioFlag
  * @key gc
  * @summary Verify that option TargetSurvivorRatio affects survivor space occupancy after minor GC.
+ * @requires (vm.opt.ExplicitGCInvokesConcurrent == null) | (vm.opt.ExplicitGCInvokesConcurrent == false)
+ * @requires (vm.opt.UseJVMCICompiler == null) | (vm.opt.UseJVMCICompiler == false)
  * @library /testlibrary /test/lib
  * @modules java.base/jdk.internal.misc
  *          java.management