hotspot/src/share/vm/memory/generation.cpp
changeset 30173 13cf7580b000
parent 29800 fa5f7a2bf717
equal deleted inserted replaced
30172:4dcc7e33e633 30173:13cf7580b000
   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);