equal
deleted
inserted
replaced
246 |
246 |
247 template <class T> void do_oop_work(T *p) { |
247 template <class T> void do_oop_work(T *p) { |
248 oop obj = RawAccess<>::oop_load(p); |
248 oop obj = RawAccess<>::oop_load(p); |
249 |
249 |
250 if (_hr->is_open_archive()) { |
250 if (_hr->is_open_archive()) { |
251 guarantee(obj == NULL || G1ArchiveAllocator::is_archive_object(obj), |
251 guarantee(obj == NULL || G1ArchiveAllocator::is_archived_object(obj), |
252 "Archive object at " PTR_FORMAT " references a non-archive object at " PTR_FORMAT, |
252 "Archive object at " PTR_FORMAT " references a non-archive object at " PTR_FORMAT, |
253 p2i(p), p2i(obj)); |
253 p2i(p), p2i(obj)); |
254 } else { |
254 } else { |
255 assert(_hr->is_closed_archive(), "should be closed archive region"); |
255 assert(_hr->is_closed_archive(), "should be closed archive region"); |
256 guarantee(obj == NULL || G1ArchiveAllocator::is_closed_archive_object(obj), |
256 guarantee(obj == NULL || G1ArchiveAllocator::is_closed_archive_object(obj), |