equal
deleted
inserted
replaced
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); |