< prev index next >

src/share/vm/memory/defNewGeneration.hpp

Print this page




 112   CSpaceCounters*      _from_counters;
 113   CSpaceCounters*      _to_counters;
 114 
 115   // sizing information
 116   size_t               _max_eden_size;
 117   size_t               _max_survivor_size;
 118 
 119   // Allocation support
 120   bool _should_allocate_from_space;
 121   bool should_allocate_from_space() const {
 122     return _should_allocate_from_space;
 123   }
 124   void clear_should_allocate_from_space() {
 125     _should_allocate_from_space = false;
 126   }
 127   void set_should_allocate_from_space() {
 128     _should_allocate_from_space = true;
 129   }
 130 
 131   // Tenuring
 132   void adjust_desired_tenuring_threshold();
 133 
 134   // Spaces
 135   EdenSpace*       _eden_space;
 136   ContiguousSpace* _from_space;
 137   ContiguousSpace* _to_space;
 138 
 139   STWGCTimer* _gc_timer;
 140 
 141   enum SomeProtectedConstants {
 142     // Generations are GenGrain-aligned and have size that are multiples of
 143     // GenGrain.
 144     MinFreeScratchWords = 100
 145   };
 146 
 147   // Return the size of a survivor space if this generation were of size
 148   // gen_size.
 149   size_t compute_survivor_size(size_t gen_size, size_t alignment) const {
 150     size_t n = gen_size / (SurvivorRatio + 2);
 151     return n > alignment ? align_size_down(n, alignment) : alignment;
 152   }




 112   CSpaceCounters*      _from_counters;
 113   CSpaceCounters*      _to_counters;
 114 
 115   // sizing information
 116   size_t               _max_eden_size;
 117   size_t               _max_survivor_size;
 118 
 119   // Allocation support
 120   bool _should_allocate_from_space;
 121   bool should_allocate_from_space() const {
 122     return _should_allocate_from_space;
 123   }
 124   void clear_should_allocate_from_space() {
 125     _should_allocate_from_space = false;
 126   }
 127   void set_should_allocate_from_space() {
 128     _should_allocate_from_space = true;
 129   }
 130 
 131   // Tenuring
 132   void adjust_desired_tenuring_threshold(GCTracer &tracer);
 133 
 134   // Spaces
 135   EdenSpace*       _eden_space;
 136   ContiguousSpace* _from_space;
 137   ContiguousSpace* _to_space;
 138 
 139   STWGCTimer* _gc_timer;
 140 
 141   enum SomeProtectedConstants {
 142     // Generations are GenGrain-aligned and have size that are multiples of
 143     // GenGrain.
 144     MinFreeScratchWords = 100
 145   };
 146 
 147   // Return the size of a survivor space if this generation were of size
 148   // gen_size.
 149   size_t compute_survivor_size(size_t gen_size, size_t alignment) const {
 150     size_t n = gen_size / (SurvivorRatio + 2);
 151     return n > alignment ? align_size_down(n, alignment) : alignment;
 152   }


< prev index next >