equal
deleted
inserted
replaced
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; |