hotspot/src/share/vm/gc/g1/g1CollectedHeap.cpp
changeset 32616 888b4f477ec9
parent 32592 d066afd32088
child 32617 a59435e1fecc
equal deleted inserted replaced
32615:b6c0aafd6945 32616:888b4f477ec9
  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);