Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions test/hotspot/jtreg/gc/z/TestUncommit.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,16 @@ private static void test(int objectSize) throws Exception {
throw new Exception("Uncommitted too fast");
}

// In typical conditions (system not over-provisioned or slow),
// uncommitting is expected to complete within 3 * ZUncommitDelay after
// the last commit. To accommodate less ideal environments, only
// durations exceeding 5 * ZUncommitDelay are flagged as errors.

if (actualDelay > delay * 3) {
log(" *** Uncommit slower than expected. ***");
}

if (actualDelay > delay * 5) {
throw new Exception("Uncommitted too slow");
}

Expand Down