hotspot/src/share/vm/gc_implementation/g1/g1CollectedHeap.inline.hpp
changeset 30571 9223db5721fe
parent 30182 1c980a880941
child 30585 12f312d694cd
equal deleted inserted replaced
30565:ebd5af27fe02 30571:9223db5721fe
    46       return NULL; // Keep some compilers happy
    46       return NULL; // Keep some compilers happy
    47   }
    47   }
    48 }
    48 }
    49 
    49 
    50 size_t G1CollectedHeap::desired_plab_sz(InCSetState dest) {
    50 size_t G1CollectedHeap::desired_plab_sz(InCSetState dest) {
    51   size_t gclab_word_size = alloc_buffer_stats(dest)->desired_plab_sz();
    51   size_t gclab_word_size = alloc_buffer_stats(dest)->desired_plab_sz(G1CollectedHeap::heap()->workers()->active_workers());
    52   // Prevent humongous PLAB sizes for two reasons:
    52   // Prevent humongous PLAB sizes for two reasons:
    53   // * PLABs are allocated using a similar paths as oops, but should
    53   // * PLABs are allocated using a similar paths as oops, but should
    54   //   never be in a humongous region
    54   //   never be in a humongous region
    55   // * Allowing humongous PLABs needlessly churns the region free lists
    55   // * Allowing humongous PLABs needlessly churns the region free lists
    56   return MIN2(_humongous_object_threshold_in_words, gclab_word_size);
    56   return MIN2(_humongous_object_threshold_in_words, gclab_word_size);