Skip to content

Commit 26c7218

Browse files
mychrislmesnik
authored andcommitted
8252773: [TESTBUG] serviceability/jvmti/GetObjectSizeOverflow fails due to OOM conditions
Reviewed-by: cjplummer, lmesnik
1 parent e20004d commit 26c7218

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

test/hotspot/jtreg/serviceability/jvmti/GetObjectSizeOverflow.java renamed to test/hotspot/jtreg/resourcehogs/serviceability/jvmti/GetObjectSizeOverflow.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* jdk.internal.jvmstat/sun.jvmstat.monitor
3535
* @requires vm.bits == 64
3636
* @requires vm.jvmti
37+
* @requires os.maxMemory > 6G
3738
* @build GetObjectSizeOverflowAgent
3839
* @run driver ClassFileInstaller GetObjectSizeOverflowAgent
3940
* @run main GetObjectSizeOverflow
@@ -61,12 +62,6 @@ public static void main(String[] args) throws Exception {
6162
ProcessBuilder pt = ProcessTools.createTestJvm("-Xmx4000m", "-javaagent:agent.jar", "GetObjectSizeOverflowAgent");
6263
OutputAnalyzer output = new OutputAnalyzer(pt.start());
6364

64-
if (output.getStdout().contains("Could not reserve enough space") || output.getStderr().contains("java.lang.OutOfMemoryError")) {
65-
System.out.println("stdout: " + output.getStdout());
66-
System.out.println("stderr: " + output.getStderr());
67-
throw new SkippedException("Test could not reserve or allocate enough space");
68-
}
69-
7065
output.stdoutShouldContain("GetObjectSizeOverflow passed");
7166
}
7267
}

0 commit comments

Comments
 (0)