mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8080112: Replace and remove the last usages of CollectedHeap::n_par_threads()
Reviewed-by: jmasa, kbarrett
This commit is contained in:
parent
b77b3ec014
commit
8d0f1a6528
20 changed files with 72 additions and 101 deletions
|
@ -101,7 +101,6 @@ class CollectedHeap : public CHeapObj<mtInternal> {
|
|||
protected:
|
||||
BarrierSet* _barrier_set;
|
||||
bool _is_gc_active;
|
||||
uint _n_par_threads;
|
||||
|
||||
unsigned int _total_collections; // ... started
|
||||
unsigned int _total_full_collections; // ... started
|
||||
|
@ -291,11 +290,8 @@ class CollectedHeap : public CHeapObj<mtInternal> {
|
|||
}
|
||||
GCCause::Cause gc_cause() { return _gc_cause; }
|
||||
|
||||
// Number of threads currently working on GC tasks.
|
||||
uint n_par_threads() { return _n_par_threads; }
|
||||
|
||||
// May be overridden to set additional parallelism.
|
||||
virtual void set_par_threads(uint t) { _n_par_threads = t; };
|
||||
virtual void set_par_threads(uint t) { (void)t; };
|
||||
|
||||
// General obj/array allocation facilities.
|
||||
inline static oop obj_allocate(KlassHandle klass, int size, TRAPS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue