equal
deleted
inserted
replaced
2921 size_t G1CollectedHeap::tlab_used(Thread* ignored) const { |
2921 size_t G1CollectedHeap::tlab_used(Thread* ignored) const { |
2922 return young_list()->eden_used_bytes(); |
2922 return young_list()->eden_used_bytes(); |
2923 } |
2923 } |
2924 |
2924 |
2925 // For G1 TLABs should not contain humongous objects, so the maximum TLAB size |
2925 // For G1 TLABs should not contain humongous objects, so the maximum TLAB size |
2926 // must be smaller than the humongous object limit. |
2926 // must be equal to the humongous object limit. |
2927 size_t G1CollectedHeap::max_tlab_size() const { |
2927 size_t G1CollectedHeap::max_tlab_size() const { |
2928 return align_size_down(_humongous_object_threshold_in_words - 1, MinObjAlignment); |
2928 return align_size_down(_humongous_object_threshold_in_words, MinObjAlignment); |
2929 } |
2929 } |
2930 |
2930 |
2931 size_t G1CollectedHeap::unsafe_max_tlab_alloc(Thread* ignored) const { |
2931 size_t G1CollectedHeap::unsafe_max_tlab_alloc(Thread* ignored) const { |
2932 AllocationContext_t context = AllocationContext::current(); |
2932 AllocationContext_t context = AllocationContext::current(); |
2933 return _allocator->unsafe_max_tlab_alloc(context); |
2933 return _allocator->unsafe_max_tlab_alloc(context); |