8330822: Remove ModRefBarrierSet::write_ref_array_work
Reviewed-by: gli, tschatzl
This commit is contained in:
parent
281f9bdeb9
commit
1a6da3d5f0
@ -74,8 +74,6 @@ class G1BarrierSet: public CardTableBarrierSet {
|
||||
inline void write_region(MemRegion mr);
|
||||
void write_region(JavaThread* thread, MemRegion mr);
|
||||
|
||||
inline void write_ref_array_work(MemRegion mr);
|
||||
|
||||
template <DecoratorSet decorators, typename T>
|
||||
void write_ref_field_post(T* field);
|
||||
void write_ref_field_post_slow(volatile CardValue* byte);
|
||||
|
@ -72,10 +72,6 @@ inline void G1BarrierSet::write_region(MemRegion mr) {
|
||||
write_region(JavaThread::current(), mr);
|
||||
}
|
||||
|
||||
inline void G1BarrierSet::write_ref_array_work(MemRegion mr) {
|
||||
write_region(mr);
|
||||
}
|
||||
|
||||
template <DecoratorSet decorators, typename T>
|
||||
inline void G1BarrierSet::write_ref_field_post(T* field) {
|
||||
volatile CardValue* byte = _card_table->byte_for(field);
|
||||
|
@ -80,10 +80,6 @@ CardTableBarrierSet::~CardTableBarrierSet() {
|
||||
delete _card_table;
|
||||
}
|
||||
|
||||
void CardTableBarrierSet::write_ref_array_work(MemRegion mr) {
|
||||
_card_table->dirty_MemRegion(mr);
|
||||
}
|
||||
|
||||
void CardTableBarrierSet::write_region(MemRegion mr) {
|
||||
_card_table->dirty_MemRegion(mr);
|
||||
}
|
||||
|
@ -70,8 +70,6 @@ public:
|
||||
write_region(mr);
|
||||
}
|
||||
|
||||
void write_ref_array_work(MemRegion mr);
|
||||
|
||||
public:
|
||||
// Record a reference update. Note that these versions are precise!
|
||||
// The scanning code has to handle the fact that the write barrier may be
|
||||
|
@ -68,9 +68,6 @@ public:
|
||||
// at the address "start", which may not necessarily be HeapWord-aligned
|
||||
inline void write_ref_array(HeapWord* start, size_t count);
|
||||
|
||||
protected:
|
||||
virtual void write_ref_array_work(MemRegion mr) = 0;
|
||||
|
||||
public:
|
||||
// The ModRef abstraction introduces pre and post barriers
|
||||
template <DecoratorSet decorators, typename BarrierSetT>
|
||||
|
@ -54,7 +54,7 @@ void ModRefBarrierSet::write_ref_array(HeapWord* start, size_t count) {
|
||||
// If compressed oops were not being used, these should already be aligned
|
||||
assert(UseCompressedOops || (aligned_start == start && aligned_end == end),
|
||||
"Expected heap word alignment of start and end");
|
||||
write_ref_array_work(MemRegion(aligned_start, aligned_end));
|
||||
write_region(MemRegion(aligned_start, aligned_end));
|
||||
}
|
||||
|
||||
template <DecoratorSet decorators, typename BarrierSetT>
|
||||
|
Loading…
x
Reference in New Issue
Block a user