< prev index next >

test/hotspot/jtreg/gc/arguments/TestMaxMinHeapFreeRatioFlags.java

Print this page
rev 52710 : Upstream/backport Shenandoah to JDK11u


   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  * @test TestMaxMinHeapFreeRatioFlags
  26  * @key gc
  27  * @summary Verify that heap size changes according to max and min heap free ratios.
  28  * @requires vm.gc != "Z"
  29  * @library /test/lib
  30  * @modules java.base/jdk.internal.misc
  31  *          java.management
  32  * @run driver/timeout=240 TestMaxMinHeapFreeRatioFlags
  33  */
  34 
  35 import java.util.LinkedList;
  36 import java.util.Arrays;
  37 import java.util.Collections;
  38 import jdk.test.lib.process.OutputAnalyzer;
  39 import jdk.test.lib.process.ProcessTools;
  40 import jdk.test.lib.Utils;
  41 import jdk.internal.misc.Unsafe;
  42 
  43 public class TestMaxMinHeapFreeRatioFlags {
  44 
  45     public static final long M = 1024 * 1024;
  46     public static final long MAX_HEAP_SIZE = 200 * M;
  47     public static final long HEAP_SIZE = 10 * M;
  48     public static final long MAX_NEW_SIZE = 20 * M;




   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  * @test TestMaxMinHeapFreeRatioFlags
  26  * @key gc
  27  * @summary Verify that heap size changes according to max and min heap free ratios.
  28  * @requires vm.gc != "Z" & vm.gc != "Shenandoah"
  29  * @library /test/lib
  30  * @modules java.base/jdk.internal.misc
  31  *          java.management
  32  * @run driver/timeout=240 TestMaxMinHeapFreeRatioFlags
  33  */
  34 
  35 import java.util.LinkedList;
  36 import java.util.Arrays;
  37 import java.util.Collections;
  38 import jdk.test.lib.process.OutputAnalyzer;
  39 import jdk.test.lib.process.ProcessTools;
  40 import jdk.test.lib.Utils;
  41 import jdk.internal.misc.Unsafe;
  42 
  43 public class TestMaxMinHeapFreeRatioFlags {
  44 
  45     public static final long M = 1024 * 1024;
  46     public static final long MAX_HEAP_SIZE = 200 * M;
  47     public static final long HEAP_SIZE = 10 * M;
  48     public static final long MAX_NEW_SIZE = 20 * M;


< prev index next >