Skip to content

Commit

Permalink
8290533: Remove G1ConcurrentMark::mark_in_bitmap(uint, HeapRegion*,oop)
Browse files Browse the repository at this point in the history
Reviewed-by: sangheki, kbarrett
  • Loading branch information
Thomas Schatzl committed Jul 20, 2022
1 parent 89458e3 commit eeb345a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/hotspot/share/gc/g1/g1ConcurrentMark.hpp
Expand Up @@ -596,7 +596,6 @@ class G1ConcurrentMark : public CHeapObj<mtGC> {
void print_on_error(outputStream* st) const;

// Mark the given object on the marking bitmap if it is below TAMS.
inline bool mark_in_bitmap(uint worker_id, HeapRegion* const hr, oop const obj);
inline bool mark_in_bitmap(uint worker_id, oop const obj);

inline bool is_marked_in_bitmap(oop p) const;
Expand Down
6 changes: 0 additions & 6 deletions src/hotspot/share/gc/g1/g1ConcurrentMark.inline.hpp
Expand Up @@ -77,12 +77,6 @@ inline bool G1CMSubjectToDiscoveryClosure::do_object_b(oop obj) {

inline bool G1ConcurrentMark::mark_in_bitmap(uint const worker_id, oop const obj) {
HeapRegion* const hr = _g1h->heap_region_containing(obj);
return mark_in_bitmap(worker_id, hr, obj);
}

inline bool G1ConcurrentMark::mark_in_bitmap(uint const worker_id, HeapRegion* const hr, oop const obj) {
assert(hr != NULL, "just checking");
assert(hr->is_in_reserved(obj), "Attempting to mark object at " PTR_FORMAT " that is not contained in the given region %u", p2i(obj), hr->hrm_index());

if (hr->obj_allocated_since_marking_start(obj)) {
return false;
Expand Down

0 comments on commit eeb345a

Please sign in to comment.