mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-05 11:15:13 +00:00
8361897: gc/z/TestUncommit.java fails with Uncommitted too slow
Reviewed-by: stefank, jsikstro
This commit is contained in:
parent
ddb64836e5
commit
3f21c8bd1f
@ -108,7 +108,16 @@ public class TestUncommit {
|
||||
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");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user