equal
deleted
inserted
replaced
185 // Ignores "ref" and calls allocate(). |
185 // Ignores "ref" and calls allocate(). |
186 oop Generation::promote(oop obj, size_t obj_size) { |
186 oop Generation::promote(oop obj, size_t obj_size) { |
187 assert(obj_size == (size_t)obj->size(), "bad obj_size passed in"); |
187 assert(obj_size == (size_t)obj->size(), "bad obj_size passed in"); |
188 |
188 |
189 #ifndef PRODUCT |
189 #ifndef PRODUCT |
190 if (Universe::heap()->promotion_should_fail()) { |
190 if (GenCollectedHeap::heap()->promotion_should_fail()) { |
191 return NULL; |
191 return NULL; |
192 } |
192 } |
193 #endif // #ifndef PRODUCT |
193 #endif // #ifndef PRODUCT |
194 |
194 |
195 HeapWord* result = allocate(obj_size, false); |
195 HeapWord* result = allocate(obj_size, false); |