Skip to content

Commit 3cbdf8d

Browse files
committed
8333554: Parallel: Remove unused PSParallelCompact::is_in
Reviewed-by: tschatzl
1 parent 3944e67 commit 3cbdf8d

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
class PSVirtualSpace;
3333

3434
class ParMarkBitMap: public CHeapObj<mtGC> {
35-
public:
3635
typedef BitMap::idx_t idx_t;
3736

37+
public:
3838
inline ParMarkBitMap();
3939
bool initialize(MemRegion covered_region);
4040

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ class PSOldGen;
4444
class ParCompactionManager;
4545
class PSParallelCompact;
4646
class MoveAndUpdateClosure;
47-
class RefProcTaskExecutor;
4847
class ParallelOldTracer;
4948
class STWGCTimer;
5049

@@ -681,7 +680,6 @@ ParallelCompactData::is_region_aligned(HeapWord* addr) const
681680
class PSParallelCompact : AllStatic {
682681
public:
683682
// Convenient access to type names.
684-
typedef ParMarkBitMap::idx_t idx_t;
685683
typedef ParallelCompactData::RegionData RegionData;
686684

687685
typedef enum {
@@ -800,11 +798,6 @@ class PSParallelCompact : AllStatic {
800798

801799
template <class T> static inline void adjust_pointer(T* p);
802800

803-
// Compaction support.
804-
// Return true if p is in the range [beg_addr, end_addr).
805-
static inline bool is_in(HeapWord* p, HeapWord* beg_addr, HeapWord* end_addr);
806-
static inline bool is_in(oop* p, HeapWord* beg_addr, HeapWord* end_addr);
807-
808801
// Convenience wrappers for per-space data kept in _space_info.
809802
static inline MutableSpace* space(SpaceId space_id);
810803
static inline HeapWord* new_top(SpaceId space_id);
@@ -899,8 +892,6 @@ class MoveAndUpdateClosure: public StackObj {
899892
inline void update_state(size_t words);
900893

901894
public:
902-
typedef ParMarkBitMap::idx_t idx_t;
903-
904895
ParMarkBitMap* bitmap() const { return _bitmap; }
905896

906897
size_t words_remaining() const { return _words_remaining; }

src/hotspot/share/gc/parallel/psParallelCompact.inline.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@ inline bool PSParallelCompact::is_marked(oop obj) {
4040
return mark_bitmap()->is_marked(obj);
4141
}
4242

43-
inline bool PSParallelCompact::is_in(HeapWord* p, HeapWord* beg_addr, HeapWord* end_addr) {
44-
return p >= beg_addr && p < end_addr;
45-
}
46-
47-
inline bool PSParallelCompact::is_in(oop* p, HeapWord* beg_addr, HeapWord* end_addr) {
48-
return is_in((HeapWord*)p, beg_addr, end_addr);
49-
}
50-
5143
inline MutableSpace* PSParallelCompact::space(SpaceId id) {
5244
assert(id < last_space_id, "id out of range");
5345
return _space_info[id].space();

0 commit comments

Comments
 (0)