Skip to content

Commit ec6beaa

Browse files
author
SendaoYan
committed
8373086: Make isexceeded001.java more robust
Reviewed-by: ayang, jsikstro Backport-of: 4d696d0
1 parent bf0bc37 commit ec6beaa

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

test/hotspot/jtreg/ProblemList.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,3 @@ vmTestbase/nsk/jdwp/ThreadReference/ForceEarlyReturn/forceEarlyReturn001/forceEa
187187
vmTestbase/nsk/monitoring/ThreadMXBean/ThreadInfo/Multi/Multi005/TestDescription.java 8076494 windows-x64
188188

189189
vmTestbase/nsk/monitoring/ThreadMXBean/findMonitorDeadlockedThreads/find006/TestDescription.java 8310144 macosx-aarch64
190-
191-
vmTestbase/nsk/monitoring/MemoryPoolMBean/isUsageThresholdExceeded/isexceeded001/TestDescription.java 8373022 generic-all
192-
vmTestbase/nsk/monitoring/MemoryPoolMBean/isUsageThresholdExceeded/isexceeded002/TestDescription.java 8373022 generic-all
193-
vmTestbase/nsk/monitoring/MemoryPoolMBean/isUsageThresholdExceeded/isexceeded003/TestDescription.java 8373022 generic-all
194-
vmTestbase/nsk/monitoring/MemoryPoolMBean/isUsageThresholdExceeded/isexceeded004/TestDescription.java 8373022 generic-all
195-
vmTestbase/nsk/monitoring/MemoryPoolMBean/isUsageThresholdExceeded/isexceeded005/TestDescription.java 8373022 generic-all

test/hotspot/jtreg/vmTestbase/nsk/monitoring/MemoryPoolMBean/isUsageThresholdExceeded/isexceeded001.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ public static int run(String[] argv, PrintStream out) {
9292
// but cannot assume this affects the pool we are testing.
9393
b = new byte[INCREMENT];
9494

95-
isExceeded = monitor.isUsageThresholdExceeded(pool);
95+
// Ensure the observation of isExceeded is sticky to match peakUsage.
96+
isExceeded = isExceeded || monitor.isUsageThresholdExceeded(pool);
9697
log.display(" Allocated heap. isExceeded = " + isExceeded);
9798

9899
// Fetch usage information: use peak usage in comparisons below, in case usage went up and then down.

0 commit comments

Comments
 (0)