--- a/src/hotspot/share/gc/shared/referenceProcessor.hpp Tue Sep 17 09:51:02 2019 +0200
+++ b/src/hotspot/share/gc/shared/referenceProcessor.hpp Tue Sep 17 09:51:02 2019 +0200
@@ -143,13 +143,13 @@
inline size_t removed() const { return _removed; }
inline void move_to_next() {
- if (oopDesc::equals_raw(_current_discovered, _next_discovered)) {
+ if (_current_discovered == _next_discovered) {
// End of the list.
_current_discovered = NULL;
} else {
_current_discovered = _next_discovered;
}
- assert(!oopDesc::equals_raw(_current_discovered, _first_seen), "cyclic ref_list found");
+ assert(_current_discovered != _first_seen, "cyclic ref_list found");
_processed++;
}
};