Skip to content

Commit b1fe4fd

Browse files
committed
* fix comment
1 parent 5327996 commit b1fe4fd

File tree

1 file changed

+3
-2
lines changed
  • test/hotspot/jtreg/vmTestbase/gc/gctests/PhantomReference/phantom001

1 file changed

+3
-2
lines changed

test/hotspot/jtreg/vmTestbase/gc/gctests/PhantomReference/phantom001/phantom001.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,9 @@ public void run() {
179179
progress("Waiting for finalization: " + type);
180180
WhiteBox.getWhiteBox().fullGC();
181181
for (int checks = 0; !finalized && !shouldTerminate(); ++checks) {
182-
// There are scenarios where one WB.fillGC() isn't enough,
183-
// but 10 iterations really ought to be sufficient.
182+
// Wait for up to 10 iterations that the finalizer has been run,
183+
// this ought to be sufficient. Full GCs of other threads might
184+
// starve out the finalizer thread, requiring more waiting.
184185
if (checks > 10) {
185186
fail("Waiting for finalization: " + type);
186187
return;

0 commit comments

Comments
 (0)