mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 02:24:40 +02:00
8213224: Move code related to GC threads calculation out of AdaptiveSizePolicy
Consolidate code related to GC threads calculation into a single class Reviewed-by: tschatzl, pliden
This commit is contained in:
parent
714b05023e
commit
df4b7015bf
18 changed files with 387 additions and 306 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -365,8 +365,12 @@ public:
|
|||
// this properly in order to enable complete page size support.
|
||||
static uint page_size_count() { return 2; }
|
||||
|
||||
// Calculates the number of parallel threads
|
||||
static unsigned int calc_parallel_worker_threads();
|
||||
// Override default denominator for ParallelGCThreads.
|
||||
//
|
||||
// FIXME: Simply checking the processor family is insufficient.
|
||||
static uint parallel_worker_threads_denominator() {
|
||||
return is_post_niagara() ? 16 : 8;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // CPU_SPARC_VM_VM_VERSION_SPARC_HPP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue