src/hotspot/share/gc/g1/g1HeapVerifier.cpp
changeset 52062 8dbf1a13af49
parent 51494 1906adbef2dc
child 52141 de6dc206a92b
equal deleted inserted replaced
52061:070186461dbb 52062:8dbf1a13af49
   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),