Skip to content

Commit 5549655

Browse files
committed
8314829: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java ignores vm flags
Backport-of: e0f8d16833c8212a79ea3dda3f4fe31134c41025
1 parent 17bf393 commit 5549655

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/hotspot/jtreg/ProblemList-zgc.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ vmTestbase/jit/escape/AdaptiveBlocking/AdaptiveBlocking001/AdaptiveBlocking001.j
3232
resourcehogs/serviceability/sa/TestHeapDumpForLargeArray.java 8220624 generic-all
3333
serviceability/sa/CDSJMapClstats.java 8220624 generic-all
3434
serviceability/sa/ClhsdbJhisto.java 8220624 generic-all
35+
serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java 8276539 generic-all
3536

3637
serviceability/sa/ClhsdbCDSCore.java 8268722 macosx-x64
3738
serviceability/sa/ClhsdbFindPC.java#id1 8268722 macosx-x64

test/hotspot/jtreg/serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -77,7 +77,7 @@ public static void main(String[] args) throws Exception {
7777
private static void testHProfFileFormat(String vmArgs, long heapSize,
7878
String expectedFormat) throws Exception, IOException,
7979
InterruptedException, FileNotFoundException {
80-
ProcessBuilder procBuilder = ProcessTools.createJavaProcessBuilder(
80+
ProcessBuilder procBuilder = ProcessTools.createTestJvm(
8181
"--add-exports=java.management/sun.management=ALL-UNNAMED", vmArgs, "JMapHProfLargeHeapProc", String.valueOf(heapSize));
8282
procBuilder.redirectError(ProcessBuilder.Redirect.INHERIT);
8383
Process largeHeapProc = procBuilder.start();

0 commit comments

Comments
 (0)