< prev index next >

src/hotspot/share/gc/shared/genCollectedHeap.hpp

Print this page




 150   // Callback from VM_GenCollectFull operation.
 151   // Perform a full collection of the first max_level+1 generations.
 152   virtual void do_full_collection(bool clear_all_soft_refs);
 153   void do_full_collection(bool clear_all_soft_refs, GenerationType max_generation);
 154 
 155   // Does the "cause" of GC indicate that
 156   // we absolutely __must__ clear soft refs?
 157   bool must_clear_all_soft_refs();
 158 
 159   GenCollectedHeap(GenCollectorPolicy *policy,
 160                    Generation::Name young,
 161                    Generation::Name old,
 162                    const char* policy_counters_name);
 163 
 164   virtual void check_gen_kinds() = 0;
 165 
 166 public:
 167 
 168   // Returns JNI_OK on success
 169   virtual jint initialize();

 170 
 171   void initialize_size_policy(size_t init_eden_size,
 172                               size_t init_promo_size,
 173                               size_t init_survivor_size);
 174 
 175   // Does operations required after initialization has been done.
 176   void post_initialize();
 177 
 178   Generation* young_gen() const { return _young_gen; }
 179   Generation* old_gen()   const { return _old_gen; }
 180 
 181   bool is_young_gen(const Generation* gen) const { return gen == _young_gen; }
 182   bool is_old_gen(const Generation* gen) const { return gen == _old_gen; }
 183 
 184   GenerationSpec* young_gen_spec() const;
 185   GenerationSpec* old_gen_spec() const;
 186 
 187   // The generational collector policy.
 188   GenCollectorPolicy* gen_policy() const { return _gen_policy; }
 189 




 150   // Callback from VM_GenCollectFull operation.
 151   // Perform a full collection of the first max_level+1 generations.
 152   virtual void do_full_collection(bool clear_all_soft_refs);
 153   void do_full_collection(bool clear_all_soft_refs, GenerationType max_generation);
 154 
 155   // Does the "cause" of GC indicate that
 156   // we absolutely __must__ clear soft refs?
 157   bool must_clear_all_soft_refs();
 158 
 159   GenCollectedHeap(GenCollectorPolicy *policy,
 160                    Generation::Name young,
 161                    Generation::Name old,
 162                    const char* policy_counters_name);
 163 
 164   virtual void check_gen_kinds() = 0;
 165 
 166 public:
 167 
 168   // Returns JNI_OK on success
 169   virtual jint initialize();
 170   virtual CardTableRS* create_rem_set(const MemRegion& reserved_region);
 171 
 172   void initialize_size_policy(size_t init_eden_size,
 173                               size_t init_promo_size,
 174                               size_t init_survivor_size);
 175 
 176   // Does operations required after initialization has been done.
 177   void post_initialize();
 178 
 179   Generation* young_gen() const { return _young_gen; }
 180   Generation* old_gen()   const { return _old_gen; }
 181 
 182   bool is_young_gen(const Generation* gen) const { return gen == _young_gen; }
 183   bool is_old_gen(const Generation* gen) const { return gen == _old_gen; }
 184 
 185   GenerationSpec* young_gen_spec() const;
 186   GenerationSpec* old_gen_spec() const;
 187 
 188   // The generational collector policy.
 189   GenCollectorPolicy* gen_policy() const { return _gen_policy; }
 190 


< prev index next >