< prev index next >

src/share/vm/runtime/os.cpp

Print this page
rev 12310 : [mq]: gcinterface.patch

@@ -976,16 +976,16 @@
     st->print_cr(INTPTR_FORMAT " is at code_begin+%d in ", p2i(addr), (int)(addr - b->code_begin()));
     b->print_on(st);
     return;
   }
 
-  if (Universe::heap()->is_in(addr)) {
-    HeapWord* p = Universe::heap()->block_start(addr);
+  if (GC::gc()->heap()->is_in(addr)) {
+    HeapWord* p = GC::gc()->heap()->block_start(addr);
     bool print = false;
     // If we couldn't find it it just may mean that heap wasn't parsable
     // See if we were just given an oop directly
-    if (p != NULL && Universe::heap()->block_is_obj(p)) {
+    if (p != NULL && GC::gc()->heap()->block_is_obj(p)) {
       print = true;
     } else if (p == NULL && ((oopDesc*)addr)->is_oop()) {
       p = (HeapWord*) addr;
       print = true;
     }

@@ -997,11 +997,11 @@
       }
       oop(p)->print_on(st);
       return;
     }
   } else {
-    if (Universe::heap()->is_in_reserved(addr)) {
+    if (GC::gc()->heap()->is_in_reserved(addr)) {
       st->print_cr(INTPTR_FORMAT " is an unallocated location "
                    "in the heap", p2i(addr));
       return;
     }
   }
< prev index next >