< prev index next >
src/share/vm/gc/shared/barrierSet.cpp
Print this page
rev 12310 : [mq]: gcinterface.patch
@@ -29,16 +29,16 @@
// count is number of array elements being written
void BarrierSet::static_write_ref_array_pre(HeapWord* start, size_t count) {
assert(count <= (size_t)max_intx, "count too large");
if (UseCompressedOops) {
- Universe::heap()->barrier_set()->write_ref_array_pre((narrowOop*)start, (int)count, false);
+ GC::gc()->heap()->barrier_set()->write_ref_array_pre((narrowOop*)start, (int)count, false);
} else {
- Universe::heap()->barrier_set()->write_ref_array_pre( (oop*)start, (int)count, false);
+ GC::gc()->heap()->barrier_set()->write_ref_array_pre( (oop*)start, (int)count, false);
}
}
// count is number of array elements being written
void BarrierSet::static_write_ref_array_post(HeapWord* start, size_t count) {
// simply delegate to instance method
- Universe::heap()->barrier_set()->write_ref_array(start, count);
+ GC::gc()->heap()->barrier_set()->write_ref_array(start, count);
}
< prev index next >