< prev index next >

src/hotspot/share/gc/serial/defNewGeneration.hpp

Print this page




 175     template <class T> void do_oop_work(T* p);
 176   public:
 177     FastKeepAliveClosure(DefNewGeneration* g, ScanWeakRefClosure* cl);
 178     virtual void do_oop(oop* p);
 179     virtual void do_oop(narrowOop* p);
 180   };
 181 
 182   class FastEvacuateFollowersClosure: public VoidClosure {
 183     SerialHeap* _heap;
 184     FastScanClosure* _scan_cur_or_nonheap;
 185     FastScanClosure* _scan_older;
 186   public:
 187     FastEvacuateFollowersClosure(SerialHeap* heap,
 188                                  FastScanClosure* cur,
 189                                  FastScanClosure* older);
 190     void do_void();
 191   };
 192 
 193  public:
 194   DefNewGeneration(ReservedSpace rs, size_t initial_byte_size,
 195                    const char* policy="Copy");
 196 
 197   virtual void ref_processor_init();
 198 
 199   virtual Generation::Name kind() { return Generation::DefNew; }
 200 
 201   // Accessing spaces
 202   ContiguousSpace* eden() const           { return _eden_space; }
 203   ContiguousSpace* from() const           { return _from_space; }
 204   ContiguousSpace* to()   const           { return _to_space;   }
 205 
 206   virtual CompactibleSpace* first_compaction_space() const;
 207 
 208   // Space enquiries
 209   size_t capacity() const;
 210   size_t used() const;
 211   size_t free() const;
 212   size_t max_capacity() const;
 213   size_t capacity_before_gc() const;
 214   size_t unsafe_max_alloc_nogc() const;
 215   size_t contiguous_available() const;




 175     template <class T> void do_oop_work(T* p);
 176   public:
 177     FastKeepAliveClosure(DefNewGeneration* g, ScanWeakRefClosure* cl);
 178     virtual void do_oop(oop* p);
 179     virtual void do_oop(narrowOop* p);
 180   };
 181 
 182   class FastEvacuateFollowersClosure: public VoidClosure {
 183     SerialHeap* _heap;
 184     FastScanClosure* _scan_cur_or_nonheap;
 185     FastScanClosure* _scan_older;
 186   public:
 187     FastEvacuateFollowersClosure(SerialHeap* heap,
 188                                  FastScanClosure* cur,
 189                                  FastScanClosure* older);
 190     void do_void();
 191   };
 192 
 193  public:
 194   DefNewGeneration(ReservedSpace rs, size_t initial_byte_size,
 195                    const char* policy="Serial young collection pauses");
 196 
 197   virtual void ref_processor_init();
 198 
 199   virtual Generation::Name kind() { return Generation::DefNew; }
 200 
 201   // Accessing spaces
 202   ContiguousSpace* eden() const           { return _eden_space; }
 203   ContiguousSpace* from() const           { return _from_space; }
 204   ContiguousSpace* to()   const           { return _to_space;   }
 205 
 206   virtual CompactibleSpace* first_compaction_space() const;
 207 
 208   // Space enquiries
 209   size_t capacity() const;
 210   size_t used() const;
 211   size_t free() const;
 212   size_t max_capacity() const;
 213   size_t capacity_before_gc() const;
 214   size_t unsafe_max_alloc_nogc() const;
 215   size_t contiguous_available() const;


< prev index next >