Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit

Permalink
8242228: Shenandoah: remove unused ShenandoahCollectionSet methods
Browse files Browse the repository at this point in the history
Reviewed-by: rkennke
  • Loading branch information
shipilev committed Apr 6, 2020
1 parent 0d1e636 commit e3aae42
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
17 changes: 0 additions & 17 deletions src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,23 +93,6 @@ void ShenandoahCollectionSet::add_region(ShenandoahHeapRegion* r) {
r->make_cset();
}

bool ShenandoahCollectionSet::add_region_check_for_duplicates(ShenandoahHeapRegion* r) {
if (!is_in(r)) {
add_region(r);
return true;
} else {
return false;
}
}

void ShenandoahCollectionSet::remove_region(ShenandoahHeapRegion* r) {
assert(ShenandoahSafepoint::is_at_shenandoah_safepoint(), "Must be at a safepoint");
assert(Thread::current()->is_VM_thread(), "Must be VMThread");
assert(is_in(r), "Not in collection set");
_cset_map[r->index()] = 0;
_region_count --;
}

void ShenandoahCollectionSet::clear() {
assert(ShenandoahSafepoint::is_at_shenandoah_safepoint(), "Must be at a safepoint");
Copy::zero_to_bytes(_cset_map, _map_size);
Expand Down
4 changes: 0 additions & 4 deletions src/hotspot/share/gc/shenandoah/shenandoahCollectionSet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ class ShenandoahCollectionSet : public CHeapObj<mtGC> {

// Add region to collection set
void add_region(ShenandoahHeapRegion* r);
bool add_region_check_for_duplicates(ShenandoahHeapRegion* r);

// Remove region from collection set
void remove_region(ShenandoahHeapRegion* r);

// MT version
ShenandoahHeapRegion* claim_next();
Expand Down

0 comments on commit e3aae42

Please sign in to comment.