< prev index next >

src/share/vm/gc/shared/barrierSet.cpp

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

*** 29,44 **** // 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); } else { ! Universe::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); } --- 29,44 ---- // 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) { ! GC::gc()->heap()->barrier_set()->write_ref_array_pre((narrowOop*)start, (int)count, false); } else { ! 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 ! GC::gc()->heap()->barrier_set()->write_ref_array(start, count); }
< prev index next >