< prev index next >

src/hotspot/share/gc/g1/g1FullGCCompactionPoint.hpp

Print this page

37   G1FullCollector* _collector;
38   HeapRegion* _current_region;
39   HeapWord*   _compaction_top;
40   GrowableArray<HeapRegion*>* _compaction_regions;
41   GrowableArrayIterator<HeapRegion*> _compaction_region_iterator;
42 
43   bool object_will_fit(size_t size);
44   void initialize_values();
45   void switch_region();
46   HeapRegion* next_region();
47   uint find_contiguous_before(HeapRegion* hr, uint num_regions);
48 
49 public:
50   G1FullGCCompactionPoint(G1FullCollector* collector);
51   ~G1FullGCCompactionPoint();
52 
53   bool has_regions();
54   bool is_initialized();
55   void initialize(HeapRegion* hr);
56   void update();

57   void forward(oop object, size_t size);

58   uint forward_humongous(HeapRegion* hr);
59   void add(HeapRegion* hr);
60   void add_humongous(HeapRegion* hr);
61 
62   void remove_at_or_above(uint bottom);
63   HeapRegion* current_region();
64 
65   GrowableArray<HeapRegion*>* regions();
66 };
67 
68 #endif // SHARE_GC_G1_G1FULLGCCOMPACTIONPOINT_HPP

37   G1FullCollector* _collector;
38   HeapRegion* _current_region;
39   HeapWord*   _compaction_top;
40   GrowableArray<HeapRegion*>* _compaction_regions;
41   GrowableArrayIterator<HeapRegion*> _compaction_region_iterator;
42 
43   bool object_will_fit(size_t size);
44   void initialize_values();
45   void switch_region();
46   HeapRegion* next_region();
47   uint find_contiguous_before(HeapRegion* hr, uint num_regions);
48 
49 public:
50   G1FullGCCompactionPoint(G1FullCollector* collector);
51   ~G1FullGCCompactionPoint();
52 
53   bool has_regions();
54   bool is_initialized();
55   void initialize(HeapRegion* hr);
56   void update();
57   template <bool ALT_FWD>
58   void forward(oop object, size_t size);
59   template <bool ALT_FWD>
60   uint forward_humongous(HeapRegion* hr);
61   void add(HeapRegion* hr);
62   void add_humongous(HeapRegion* hr);
63 
64   void remove_at_or_above(uint bottom);
65   HeapRegion* current_region();
66 
67   GrowableArray<HeapRegion*>* regions();
68 };
69 
70 #endif // SHARE_GC_G1_G1FULLGCCOMPACTIONPOINT_HPP
< prev index next >