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 TestPLABOutput 26 * @bug 8140585 27 * @summary Check that G1 does not report empty PLAB statistics in the first evacuation. 28 * @requires vm.gc.G1 29 * @key gc 30 * @modules java.base/jdk.internal.misc 31 * @library /testlibrary /test/lib 32 * @build sun.hotspot.WhiteBox 33 * @run main ClassFileInstaller sun.hotspot.WhiteBox 34 * @run driver TestPLABOutput 35 */ 36 37 import sun.hotspot.WhiteBox; 38 39 import java.util.regex.Matcher; 40 import java.util.regex.Pattern; 41 42 import jdk.test.lib.OutputAnalyzer; 43 import jdk.test.lib.Platform; 44 import jdk.test.lib.ProcessTools; 45 46 import static jdk.test.lib.Asserts.*; 47 48 public class TestPLABOutput { 49 50 public static void runTest() throws Exception { 51 final String[] arguments = { 52 "-Xbootclasspath/a:.", 53 "-XX:+UnlockExperimentalVMOptions", 54 "-XX:+UnlockDiagnosticVMOptions", 55 "-XX:+WhiteBoxAPI", 56 "-XX:+UseG1GC", 57 "-Xmx10M", 58 "-Xlog:gc+plab=debug", 59 GCTest.class.getName() 60 }; 61 62 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(arguments); 63 OutputAnalyzer output = new OutputAnalyzer(pb.start()); 64 | 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 TestPLABOutput 26 * @bug 8140585 27 * @summary Check that G1 does not report empty PLAB statistics in the first evacuation. 28 * @requires vm.gc.G1 29 * @key gc 30 * @modules java.base/jdk.internal.misc 31 * @library /test/lib 32 * @build sun.hotspot.WhiteBox 33 * @run main ClassFileInstaller sun.hotspot.WhiteBox 34 * @run driver TestPLABOutput 35 */ 36 37 import sun.hotspot.WhiteBox; 38 39 import java.util.regex.Matcher; 40 import java.util.regex.Pattern; 41 42 import jdk.test.lib.Platform; 43 import jdk.test.lib.process.OutputAnalyzer; 44 import jdk.test.lib.process.ProcessTools; 45 46 import static jdk.test.lib.Asserts.*; 47 48 public class TestPLABOutput { 49 50 public static void runTest() throws Exception { 51 final String[] arguments = { 52 "-Xbootclasspath/a:.", 53 "-XX:+UnlockExperimentalVMOptions", 54 "-XX:+UnlockDiagnosticVMOptions", 55 "-XX:+WhiteBoxAPI", 56 "-XX:+UseG1GC", 57 "-Xmx10M", 58 "-Xlog:gc+plab=debug", 59 GCTest.class.getName() 60 }; 61 62 ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(arguments); 63 OutputAnalyzer output = new OutputAnalyzer(pb.start()); 64 |