@@ -166,7 +166,7 @@ inline bool SplitInfo::is_split(size_t region_idx) const
166
166
167
167
class SpaceInfo
168
168
{
169
- public:
169
+ public:
170
170
MutableSpace* space () const { return _space; }
171
171
172
172
// Where the free space will start after the collection. Valid only after the
@@ -190,9 +190,7 @@ class SpaceInfo
190
190
void set_dense_prefix (HeapWord* addr) { _dense_prefix = addr; }
191
191
void set_start_array (ObjectStartArray* s) { _start_array = s; }
192
192
193
- void publish_new_top () const { _space->set_top (_new_top); }
194
-
195
- private:
193
+ private:
196
194
MutableSpace* _space;
197
195
HeapWord* _new_top;
198
196
HeapWord* _dense_prefix;
@@ -681,7 +679,7 @@ ParallelCompactData::is_region_aligned(HeapWord* addr) const
681
679
// https://doi.org/10.1145/3313808.3313820
682
680
683
681
class PSParallelCompact : AllStatic {
684
- public:
682
+ public:
685
683
// Convenient access to type names.
686
684
typedef ParMarkBitMap::idx_t idx_t ;
687
685
typedef ParallelCompactData::RegionData RegionData;
@@ -701,7 +699,7 @@ class PSParallelCompact : AllStatic {
701
699
702
700
friend class PSParallelCompactTest ;
703
701
704
- private:
702
+ private:
705
703
static STWGCTimer _gc_timer;
706
704
static ParallelOldTracer _gc_tracer;
707
705
static elapsedTimer _accumulated_time;
@@ -716,10 +714,10 @@ class PSParallelCompact : AllStatic {
716
714
static SpanSubjectToDiscoveryClosure _span_based_discoverer;
717
715
static ReferenceProcessor* _ref_processor;
718
716
719
- public:
717
+ public:
720
718
static ParallelOldTracer* gc_tracer () { return &_gc_tracer; }
721
719
722
- private:
720
+ private:
723
721
724
722
static void initialize_space_info ();
725
723
@@ -768,7 +766,7 @@ class PSParallelCompact : AllStatic {
768
766
769
767
static void fill_range_in_dense_prefix (HeapWord* start, HeapWord* end);
770
768
771
- public:
769
+ public:
772
770
static void fill_dead_objs_in_dense_prefix (uint worker_id, uint num_workers);
773
771
774
772
static bool invoke (bool maximum_heap_compaction);
@@ -885,12 +883,12 @@ class PSParallelCompact : AllStatic {
885
883
};
886
884
887
885
class MoveAndUpdateClosure : public StackObj {
888
- private:
886
+ private:
889
887
ParMarkBitMap* const _bitmap;
890
888
size_t _words_remaining; // Words left to copy.
891
889
static inline size_t calculate_words_remaining (size_t region);
892
890
893
- protected:
891
+ protected:
894
892
HeapWord* _source; // Next addr that would be read.
895
893
HeapWord* _destination; // Next addr to be written.
896
894
ObjectStartArray* const _start_array;
@@ -900,7 +898,7 @@ class MoveAndUpdateClosure: public StackObj {
900
898
// Update variables to indicate that word_count words were processed.
901
899
inline void update_state (size_t words);
902
900
903
- public:
901
+ public:
904
902
typedef ParMarkBitMap::idx_t idx_t ;
905
903
906
904
ParMarkBitMap* bitmap () const { return _bitmap; }
1 commit comments
openjdk-notifier[bot] commentedon Jun 4, 2024
Review
Issues