equal
deleted
inserted
replaced
400 // TLAB allocation directly in the old gen. |
400 // TLAB allocation directly in the old gen. |
401 if (result != NULL) { |
401 if (result != NULL) { |
402 return result; |
402 return result; |
403 } |
403 } |
404 if (!is_tlab && |
404 if (!is_tlab && |
405 size >= (young_gen()->eden_space()->capacity_in_words() / 2)) { |
405 size >= (young_gen()->eden_space()->capacity_in_words(Thread::current()) / 2)) { |
406 result = old_gen()->allocate(size, is_tlab); |
406 result = old_gen()->allocate(size, is_tlab); |
407 if (result != NULL) { |
407 if (result != NULL) { |
408 return result; |
408 return result; |
409 } |
409 } |
410 } |
410 } |