< prev index next >

src/hotspot/share/gc/shared/referenceProcessor.cpp

Print this page
rev 50108 : [mq]: tschatzl_1

*** 377,387 **** DiscoveredListIterator iter(refs_list, keep_alive, is_alive); while (iter.has_next()) { iter.load_ptrs(DEBUG_ONLY(!discovery_is_atomic() /* allow_null_referent */)); if (iter.referent() == NULL) { // Reference has been cleared since discovery; only possible if ! // discovery is not atomic. Remove reference from list. log_dropped_ref(iter, "cleared"); iter.remove(); iter.move_to_next(); } else if (iter.is_referent_alive()) { // The referent is reachable after all. --- 377,388 ---- DiscoveredListIterator iter(refs_list, keep_alive, is_alive); while (iter.has_next()) { iter.load_ptrs(DEBUG_ONLY(!discovery_is_atomic() /* allow_null_referent */)); if (iter.referent() == NULL) { // Reference has been cleared since discovery; only possible if ! // discovery is not atomic (checked by load_ptrs). Remove ! // reference from list. log_dropped_ref(iter, "cleared"); iter.remove(); iter.move_to_next(); } else if (iter.is_referent_alive()) { // The referent is reachable after all.
< prev index next >