Mercurial > hg > graal-jvmci-8
comparison src/share/vm/gc_implementation/g1/g1CollectedHeap.inline.hpp @ 8504:86b4965f0c9a
-Cleanup code
author | Christos Kotselidis <christos.kotselidis@oracle.com> |
---|---|
date | Wed, 20 Mar 2013 21:39:24 +0100 |
parents | 992f62c457b0 |
children | b9a918201d47 |
comparison
equal
deleted
inserted
replaced
8503:58385e7565ff | 8504:86b4965f0c9a |
---|---|
68 HeapWord* result = _mutator_alloc_region.attempt_allocation(word_size, | 68 HeapWord* result = _mutator_alloc_region.attempt_allocation(word_size, |
69 false /* bot_updates */); | 69 false /* bot_updates */); |
70 if (result == NULL) { | 70 if (result == NULL) { |
71 result = attempt_allocation_slow(word_size, gc_count_before_ret); | 71 result = attempt_allocation_slow(word_size, gc_count_before_ret); |
72 } | 72 } |
73 | |
74 assert_heap_not_locked(); | 73 assert_heap_not_locked(); |
75 if (result != NULL) { | 74 if (result != NULL) { |
76 dirty_young_block(result, word_size); | 75 dirty_young_block(result, word_size); |
77 } | 76 } |
78 return result; | 77 return result; |
88 if (result == NULL) { | 87 if (result == NULL) { |
89 MutexLockerEx x(FreeList_lock, Mutex::_no_safepoint_check_flag); | 88 MutexLockerEx x(FreeList_lock, Mutex::_no_safepoint_check_flag); |
90 result = _survivor_gc_alloc_region.attempt_allocation_locked(word_size, | 89 result = _survivor_gc_alloc_region.attempt_allocation_locked(word_size, |
91 false /* bot_updates */); | 90 false /* bot_updates */); |
92 } | 91 } |
93 | |
94 | |
95 if (result != NULL) { | 92 if (result != NULL) { |
96 dirty_young_block(result, word_size); | 93 dirty_young_block(result, word_size); |
97 } | 94 } |
98 return result; | 95 return result; |
99 } | 96 } |