8302121: Parallel: Remove unused arg in PSCardTable::inline_write_ref_field_gc

Reviewed-by: tschatzl
This commit is contained in:
Albert Mingkun Yang 2023-02-09 10:37:48 +00:00
parent 916374d766
commit d401982087
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ class PSCardTable: public CardTable {
static bool card_is_verify(int value) { return value == verify_card; }
// Card marking
void inline_write_ref_field_gc(void* field, oop new_val) {
void inline_write_ref_field_gc(void* field) {
CardValue* byte = byte_for(field);
*byte = youngergen_card;
}

View File

@ -317,7 +317,7 @@ inline void PSPromotionManager::copy_and_push_safe_barrier(T* p) {
if (!PSScavenge::is_obj_in_young((HeapWord*)p) &&
PSScavenge::is_obj_in_young(new_obj)) {
PSScavenge::card_table()->inline_write_ref_field_gc(p, new_obj);
PSScavenge::card_table()->inline_write_ref_field_gc(p);
}
}