hotspot/src/share/vm/gc/serial/defNewGeneration.hpp
changeset 46619 a3919f5e8d2b
parent 41283 2615c024f3eb
child 46625 edefffab74e2
equal deleted inserted replaced
46618:d503911aa948 46619:a3919f5e8d2b
   141 
   141 
   142   // Return the size of a survivor space if this generation were of size
   142   // Return the size of a survivor space if this generation were of size
   143   // gen_size.
   143   // gen_size.
   144   size_t compute_survivor_size(size_t gen_size, size_t alignment) const {
   144   size_t compute_survivor_size(size_t gen_size, size_t alignment) const {
   145     size_t n = gen_size / (SurvivorRatio + 2);
   145     size_t n = gen_size / (SurvivorRatio + 2);
   146     return n > alignment ? align_size_down(n, alignment) : alignment;
   146     return n > alignment ? align_down(n, alignment) : alignment;
   147   }
   147   }
   148 
   148 
   149  public:  // was "protected" but caused compile error on win32
   149  public:  // was "protected" but caused compile error on win32
   150   class IsAliveClosure: public BoolObjectClosure {
   150   class IsAliveClosure: public BoolObjectClosure {
   151     Generation* _young_gen;
   151     Generation* _young_gen;