--- a/hotspot/src/share/vm/memory/genCollectedHeap.cpp Thu Nov 20 12:27:41 2008 -0800
+++ b/hotspot/src/share/vm/memory/genCollectedHeap.cpp Thu Nov 20 16:56:09 2008 -0800
@@ -525,8 +525,9 @@
if (rp->discovery_is_atomic()) {
rp->verify_no_references_recorded();
rp->enable_discovery();
+ rp->snap_policy(clear_all_soft_refs);
} else {
- // collect() will enable discovery as appropriate
+ // collect() below will enable discovery as appropriate
}
_gens[i]->collect(full, clear_all_soft_refs, size, is_tlab);
if (!rp->enqueuing_is_done()) {