mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8080876: Replace unnecessary MAX2(ParallelGCThreads, 1) calls with ParallelGCThreads
Reviewed-by: kbarrett, mgerdin
This commit is contained in:
parent
21bb8edbba
commit
23b343af68
11 changed files with 21 additions and 25 deletions
|
@ -1278,10 +1278,8 @@ void Arguments::set_cms_and_parnew_gc_flags() {
|
|||
|
||||
// Preferred young gen size for "short" pauses:
|
||||
// upper bound depends on # of threads and NewRatio.
|
||||
const uintx parallel_gc_threads =
|
||||
(ParallelGCThreads == 0 ? 1 : ParallelGCThreads);
|
||||
const size_t preferred_max_new_size_unaligned =
|
||||
MIN2(max_heap/(NewRatio+1), ScaleForWordSize(young_gen_per_worker * parallel_gc_threads));
|
||||
MIN2(max_heap/(NewRatio+1), ScaleForWordSize(young_gen_per_worker * ParallelGCThreads));
|
||||
size_t preferred_max_new_size =
|
||||
align_size_up(preferred_max_new_size_unaligned, os::vm_page_size());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue