8302127: Remove unused arg in write_ref_field_post
Reviewed-by: phh, kbarrett
This commit is contained in:
parent
0c9658446d
commit
28f5250fa5
@ -78,7 +78,7 @@ class G1BarrierSet: public CardTableBarrierSet {
|
||||
void write_ref_array_work(MemRegion mr) { invalidate(mr); }
|
||||
|
||||
template <DecoratorSet decorators, typename T>
|
||||
void write_ref_field_post(T* field, oop new_val);
|
||||
void write_ref_field_post(T* field);
|
||||
void write_ref_field_post_slow(volatile CardValue* byte);
|
||||
|
||||
virtual void on_thread_create(Thread* thread);
|
||||
|
@ -68,7 +68,7 @@ inline void G1BarrierSet::write_ref_field_pre(T* field) {
|
||||
}
|
||||
|
||||
template <DecoratorSet decorators, typename T>
|
||||
inline void G1BarrierSet::write_ref_field_post(T* field, oop new_val) {
|
||||
inline void G1BarrierSet::write_ref_field_post(T* field) {
|
||||
volatile CardValue* byte = _card_table->byte_for(field);
|
||||
if (*byte != G1CardTable::g1_young_card_val()) {
|
||||
// Take a slow path for cards in old
|
||||
|
@ -80,7 +80,7 @@ protected:
|
||||
// either precise or imprecise. We make non-virtual inline variants of
|
||||
// these functions here for performance.
|
||||
template <DecoratorSet decorators, typename T>
|
||||
void write_ref_field_post(T* field, oop newVal);
|
||||
void write_ref_field_post(T* field);
|
||||
|
||||
virtual void invalidate(MemRegion mr);
|
||||
|
||||
|
@ -31,7 +31,7 @@
|
||||
#include "runtime/atomic.hpp"
|
||||
|
||||
template <DecoratorSet decorators, typename T>
|
||||
inline void CardTableBarrierSet::write_ref_field_post(T* field, oop newVal) {
|
||||
inline void CardTableBarrierSet::write_ref_field_post(T* field) {
|
||||
volatile CardValue* byte = _card_table->byte_for(field);
|
||||
*byte = CardTable::dirty_card_val();
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
inline void write_ref_field_pre(T* addr) {}
|
||||
|
||||
template <DecoratorSet decorators, typename T>
|
||||
inline void write_ref_field_post(T *addr, oop new_value) {}
|
||||
inline void write_ref_field_post(T *addr) {}
|
||||
|
||||
// Causes all refs in "mr" to be assumed to be modified.
|
||||
virtual void invalidate(MemRegion mr) = 0;
|
||||
|
@ -63,7 +63,7 @@ oop_store_in_heap(T* addr, oop value) {
|
||||
BarrierSetT *bs = barrier_set_cast<BarrierSetT>(barrier_set());
|
||||
bs->template write_ref_field_pre<decorators>(addr);
|
||||
Raw::oop_store(addr, value);
|
||||
bs->template write_ref_field_post<decorators>(addr, value);
|
||||
bs->template write_ref_field_post<decorators>(addr);
|
||||
}
|
||||
|
||||
template <DecoratorSet decorators, typename BarrierSetT>
|
||||
@ -74,7 +74,7 @@ oop_atomic_cmpxchg_in_heap(T* addr, oop compare_value, oop new_value) {
|
||||
bs->template write_ref_field_pre<decorators>(addr);
|
||||
oop result = Raw::oop_atomic_cmpxchg(addr, compare_value, new_value);
|
||||
if (result == compare_value) {
|
||||
bs->template write_ref_field_post<decorators>(addr, new_value);
|
||||
bs->template write_ref_field_post<decorators>(addr);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@ -86,7 +86,7 @@ oop_atomic_xchg_in_heap(T* addr, oop new_value) {
|
||||
BarrierSetT *bs = barrier_set_cast<BarrierSetT>(barrier_set());
|
||||
bs->template write_ref_field_pre<decorators>(addr);
|
||||
oop result = Raw::oop_atomic_xchg(addr, new_value);
|
||||
bs->template write_ref_field_post<decorators>(addr, new_value);
|
||||
bs->template write_ref_field_post<decorators>(addr);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user