50 void retire_alloc_buffers_before_full_gc();
51
52 GenerationCounters* _gen_counters;
53 CSpaceCounters* _space_counters;
54
55 public:
56 TenuredGeneration(ReservedSpace rs, size_t initial_byte_size, int level,
57 GenRemSet* remset);
58
59 Generation::Name kind() { return Generation::MarkSweepCompact; }
60
61 // Printing
62 const char* name() const;
63 const char* short_name() const { return "Tenured"; }
64 bool must_be_youngest() const { return false; }
65 bool must_be_oldest() const { return true; }
66
67 // Does a "full" (forced) collection invoked on this generation collect
68 // all younger generations as well? Note that this is a
69 // hack to allow the collection of the younger gen first if the flag is
70 // set. This is better than using th policy's should_collect_gen0_first()
71 // since that causes us to do an extra unnecessary pair of restart-&-stop-world.
72 virtual bool full_collects_younger_generations() const {
73 return !CollectGen0First;
74 }
75
76 virtual void gc_prologue(bool full);
77 virtual void gc_epilogue(bool full);
78 bool should_collect(bool full,
79 size_t word_size,
80 bool is_tlab);
81
82 virtual void collect(bool full,
83 bool clear_all_soft_refs,
84 size_t size,
85 bool is_tlab);
86 virtual void compute_new_size();
87
88 #if INCLUDE_ALL_GCS
89 // Overrides.
90 virtual oop par_promote(int thread_num,
91 oop obj, markOop m, size_t word_sz);
|
50 void retire_alloc_buffers_before_full_gc();
51
52 GenerationCounters* _gen_counters;
53 CSpaceCounters* _space_counters;
54
55 public:
56 TenuredGeneration(ReservedSpace rs, size_t initial_byte_size, int level,
57 GenRemSet* remset);
58
59 Generation::Name kind() { return Generation::MarkSweepCompact; }
60
61 // Printing
62 const char* name() const;
63 const char* short_name() const { return "Tenured"; }
64 bool must_be_youngest() const { return false; }
65 bool must_be_oldest() const { return true; }
66
67 // Does a "full" (forced) collection invoked on this generation collect
68 // all younger generations as well? Note that this is a
69 // hack to allow the collection of the younger gen first if the flag is
70 // set.
71 virtual bool full_collects_younger_generations() const {
72 return !CollectGen0First;
73 }
74
75 virtual void gc_prologue(bool full);
76 virtual void gc_epilogue(bool full);
77 bool should_collect(bool full,
78 size_t word_size,
79 bool is_tlab);
80
81 virtual void collect(bool full,
82 bool clear_all_soft_refs,
83 size_t size,
84 bool is_tlab);
85 virtual void compute_new_size();
86
87 #if INCLUDE_ALL_GCS
88 // Overrides.
89 virtual oop par_promote(int thread_num,
90 oop obj, markOop m, size_t word_sz);
|