equal
deleted
inserted
replaced
368 { |
368 { |
369 Allocation allocation(*this, &obj); |
369 Allocation allocation(*this, &obj); |
370 HeapWord* mem = mem_allocate(allocation); |
370 HeapWord* mem = mem_allocate(allocation); |
371 if (mem != NULL) { |
371 if (mem != NULL) { |
372 obj = initialize(mem); |
372 obj = initialize(mem); |
|
373 } else { |
|
374 // The unhandled oop detector will poison local variable obj, |
|
375 // so reset it to NULL if mem is NULL. |
|
376 obj = NULL; |
373 } |
377 } |
374 } |
378 } |
375 return obj; |
379 return obj; |
376 } |
380 } |
377 |
381 |