equal
deleted
inserted
replaced
54 // * Allowing humongous PLABs needlessly churns the region free lists |
54 // * Allowing humongous PLABs needlessly churns the region free lists |
55 return MIN2(_humongous_object_threshold_in_words, gclab_word_size); |
55 return MIN2(_humongous_object_threshold_in_words, gclab_word_size); |
56 } |
56 } |
57 |
57 |
58 // Inline functions for G1CollectedHeap |
58 // Inline functions for G1CollectedHeap |
59 |
|
60 inline AllocationContextStats& G1CollectedHeap::allocation_context_stats() { |
|
61 return _allocation_context_stats; |
|
62 } |
|
63 |
59 |
64 // Return the region with the given index. It assumes the index is valid. |
60 // Return the region with the given index. It assumes the index is valid. |
65 inline HeapRegion* G1CollectedHeap::region_at(uint index) const { return _hrm.at(index); } |
61 inline HeapRegion* G1CollectedHeap::region_at(uint index) const { return _hrm.at(index); } |
66 |
62 |
67 inline HeapRegion* G1CollectedHeap::next_region_in_humongous(HeapRegion* hr) const { |
63 inline HeapRegion* G1CollectedHeap::next_region_in_humongous(HeapRegion* hr) const { |