Skip to content

Commit 7f31a05

Browse files
committed
8319203: Parallel: Rename addr_is_marked_imprecise
Reviewed-by: iwalulya, tschatzl
1 parent 4a85f6a commit 7f31a05

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/hotspot/share/gc/parallel/psCardTable.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class CheckForUnmarkedOops : public BasicOopIterateClosure {
4848
template <class T> void do_oop_work(T* p) {
4949
oop obj = RawAccess<>::oop_load(p);
5050
if (_young_gen->is_in_reserved(obj) &&
51-
!_card_table->addr_is_marked_imprecise(p)) {
51+
!_card_table->is_dirty_for_addr(p)) {
5252
// Don't overwrite the first missing card mark
5353
if (_unmarked_addr == nullptr) {
5454
_unmarked_addr = (HeapWord*)p;
@@ -90,7 +90,7 @@ class CheckForUnmarkedObjects : public ObjectClosure {
9090
CheckForUnmarkedOops object_check(_young_gen, _card_table);
9191
obj->oop_iterate(&object_check);
9292
if (object_check.has_unmarked_oop()) {
93-
guarantee(_card_table->addr_is_marked_imprecise(obj), "Found unmarked young_gen object");
93+
guarantee(_card_table->is_dirty_for_addr(obj), "Found unmarked young_gen object");
9494
}
9595
}
9696
};
@@ -387,7 +387,7 @@ void PSCardTable::verify_all_young_refs_imprecise() {
387387
old_gen->object_iterate(&check);
388388
}
389389

390-
bool PSCardTable::addr_is_marked_imprecise(void *addr) {
390+
bool PSCardTable::is_dirty_for_addr(void *addr) {
391391
CardValue* p = byte_for(addr);
392392
return is_dirty(p);
393393
}

src/hotspot/share/gc/parallel/psCardTable.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class PSCardTable: public CardTable {
8282
uint stripe_index,
8383
uint n_stripes);
8484

85-
bool addr_is_marked_imprecise(void *addr);
85+
bool is_dirty_for_addr(void *addr);
8686

8787
// Card marking
8888
void inline_write_ref_field_gc(void* field) {

0 commit comments

Comments
 (0)