Mercurial > hg > truffle
comparison src/share/vm/memory/barrierSet.cpp @ 1339:09ac706c2623
Merge
author | asaha |
---|---|
date | Wed, 24 Mar 2010 17:16:33 -0700 |
parents | 6aa7255741f3 |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1338:f5dd08ad65df | 1339:09ac706c2623 |
---|---|
39 } | 39 } |
40 } | 40 } |
41 | 41 |
42 // count is number of array elements being written | 42 // count is number of array elements being written |
43 void BarrierSet::static_write_ref_array_post(HeapWord* start, size_t count) { | 43 void BarrierSet::static_write_ref_array_post(HeapWord* start, size_t count) { |
44 assert(count <= (size_t)max_intx, "count too large"); | 44 // simply delegate to instance method |
45 HeapWord* end = start + objArrayOopDesc::array_size((int)count); | 45 Universe::heap()->barrier_set()->write_ref_array(start, count); |
46 #if 0 | |
47 warning("Post:\t" INTPTR_FORMAT "[" SIZE_FORMAT "] : [" INTPTR_FORMAT","INTPTR_FORMAT")\t", | |
48 start, count, start, end); | |
49 #endif | |
50 Universe::heap()->barrier_set()->write_ref_array_work(MemRegion(start, end)); | |
51 } | 46 } |