< prev index next >
src/share/vm/c1/c1_Runtime1.cpp
Print this page
rev 12854 : [mq]: gcinterface.patch
@@ -1231,11 +1231,11 @@
CodeCache::add_scavenge_root_nmethod(nm);
}
// Since we've patched some oops in the nmethod,
// (re)register it with the heap.
- Universe::heap()->register_nmethod(nm);
+ GC::gc()->heap()->register_nmethod(nm);
}
JRT_END
#else // DEOPTIMIZE_WHEN_PATCHING
@@ -1378,11 +1378,11 @@
int length) {
// For performance reasons, we assume we are using a card marking write
// barrier. The assert will fail if this is not the case.
// Note that we use the non-virtual inlineable variant of write_ref_array.
- BarrierSet* bs = Universe::heap()->barrier_set();
+ BarrierSet* bs = GC::gc()->heap()->barrier_set();
assert(bs->has_write_ref_array_opt(), "Barrier set must have ref array opt");
assert(bs->has_write_ref_array_pre_opt(), "For pre-barrier as well.");
if (src == dst) {
// same object, no check
bs->write_ref_array_pre(dst_addr, length);
@@ -1458,11 +1458,11 @@
#ifndef PRODUCT
_oop_arraycopy_cnt++;
#endif
if (num == 0) return;
- BarrierSet* bs = Universe::heap()->barrier_set();
+ BarrierSet* bs = GC::gc()->heap()->barrier_set();
assert(bs->has_write_ref_array_opt(), "Barrier set must have ref array opt");
assert(bs->has_write_ref_array_pre_opt(), "For pre-barrier as well.");
if (UseCompressedOops) {
bs->write_ref_array_pre((narrowOop*)dst, num);
Copy::conjoint_oops_atomic((narrowOop*) src, (narrowOop*) dst, num);
< prev index next >