We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5327996 commit b1fe4fdCopy full SHA for b1fe4fd
test/hotspot/jtreg/vmTestbase/gc/gctests/PhantomReference/phantom001/phantom001.java
@@ -179,8 +179,9 @@ public void run() {
179
progress("Waiting for finalization: " + type);
180
WhiteBox.getWhiteBox().fullGC();
181
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.
+ // Wait for up to 10 iterations that the finalizer has been run,
+ // this ought to be sufficient. Full GCs of other threads might
184
+ // starve out the finalizer thread, requiring more waiting.
185
if (checks > 10) {
186
fail("Waiting for finalization: " + type);
187
return;
0 commit comments