8323635: Test gc/g1/TestHumongousAllocConcurrentStart.java fails with -XX:TieredStopAtLevel=3

Reviewed-by: shade, lmesnik
This commit is contained in:
Thomas Schatzl 2024-01-16 12:00:57 +00:00
parent 44a9392eca
commit 5045839cb2

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2024, 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
@ -28,6 +28,7 @@ package gc.g1;
* @bug 7168848
* @summary G1: humongous object allocations should initiate marking cycles when necessary
* @requires vm.gc.G1
* @requires vm.flagless
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
@ -45,7 +46,7 @@ public class TestHumongousAllocConcurrentStart {
private static final int initiatingHeapOccupancyPercent = 50; // %
public static void main(String[] args) throws Exception {
OutputAnalyzer output = ProcessTools.executeTestJava(
OutputAnalyzer output = ProcessTools.executeLimitedTestJava(
"-XX:+UseG1GC",
"-Xms" + heapSize + "m",
"-Xmx" + heapSize + "m",