< prev index next >
src/hotspot/share/gc/shared/referenceProcessor.hpp
Print this page
*** 141,157 ****
// Statistics
inline size_t processed() const { return _processed; }
inline size_t removed() const { return _removed; }
inline void move_to_next() {
! if (_current_discovered == _next_discovered) {
// End of the list.
_current_discovered = NULL;
} else {
_current_discovered = _next_discovered;
}
! assert(_current_discovered != _first_seen, "cyclic ref_list found");
_processed++;
}
};
// The ReferenceProcessor class encapsulates the per-"collector" processing
--- 141,157 ----
// Statistics
inline size_t processed() const { return _processed; }
inline size_t removed() const { return _removed; }
inline void move_to_next() {
! if (oopDesc::unsafe_equals(_current_discovered, _next_discovered)) {
// End of the list.
_current_discovered = NULL;
} else {
_current_discovered = _next_discovered;
}
! assert(! oopDesc::unsafe_equals(_current_discovered, _first_seen), "cyclic ref_list found");
_processed++;
}
};
// The ReferenceProcessor class encapsulates the per-"collector" processing
< prev index next >