equal
deleted
inserted
replaced
141 // Statistics |
141 // Statistics |
142 inline size_t processed() const { return _processed; } |
142 inline size_t processed() const { return _processed; } |
143 inline size_t removed() const { return _removed; } |
143 inline size_t removed() const { return _removed; } |
144 |
144 |
145 inline void move_to_next() { |
145 inline void move_to_next() { |
146 if (_current_discovered == _next_discovered) { |
146 if (oopDesc::equals_raw(_current_discovered, _next_discovered)) { |
147 // End of the list. |
147 // End of the list. |
148 _current_discovered = NULL; |
148 _current_discovered = NULL; |
149 } else { |
149 } else { |
150 _current_discovered = _next_discovered; |
150 _current_discovered = _next_discovered; |
151 } |
151 } |
152 assert(_current_discovered != _first_seen, "cyclic ref_list found"); |
152 assert(!oopDesc::equals_raw(_current_discovered, _first_seen), "cyclic ref_list found"); |
153 _processed++; |
153 _processed++; |
154 } |
154 } |
155 }; |
155 }; |
156 |
156 |
157 // The ReferenceProcessor class encapsulates the per-"collector" processing |
157 // The ReferenceProcessor class encapsulates the per-"collector" processing |