8251837: Rename get_safepoint_workers to safepoint_workers

Reviewed-by: tschatzl
This commit is contained in:
Stefan Karlsson 2020-08-17 11:36:09 +02:00
parent 34949494e4
commit 51c8ac362e
10 changed files with 10 additions and 10 deletions

View file

@ -1437,7 +1437,7 @@ public:
virtual bool supports_concurrent_gc_breakpoints() const;
bool is_heterogeneous_heap() const;
virtual WorkGang* get_safepoint_workers() { return _workers; }
virtual WorkGang* safepoint_workers() { return _workers; }
// The methods below are here for convenience and dispatch the
// appropriate method depending on value of the given VerifyOption

View file

@ -220,7 +220,7 @@ class ParallelScavengeHeap : public CollectedHeap {
virtual void gc_threads_do(ThreadClosure* tc) const;
virtual void print_tracing_info() const;
virtual WorkGang* get_safepoint_workers() { return &_workers; }
virtual WorkGang* safepoint_workers() { return &_workers; }
PreGenGCValues get_pre_gc_values() const;
void print_heap_change(const PreGenGCValues& pre_gc_values) const;

View file

@ -499,7 +499,7 @@ class CollectedHeap : public CHeapObj<mtInternal> {
// concurrent marking) for an intermittent non-GC safepoint.
// If this method returns NULL, SafepointSynchronize will
// perform cleanup tasks serially in the VMThread.
virtual WorkGang* get_safepoint_workers() { return NULL; }
virtual WorkGang* safepoint_workers() { return NULL; }
// Support for object pinning. This is used by JNI Get*Critical()
// and Release*Critical() family of functions. If supported, the GC

View file

@ -195,7 +195,7 @@ public:
void assert_gc_workers(uint nworker) NOT_DEBUG_RETURN;
WorkGang* workers() const;
WorkGang* get_safepoint_workers();
WorkGang* safepoint_workers();
void gc_threads_do(ThreadClosure* tcl) const;

View file

@ -66,7 +66,7 @@ inline WorkGang* ShenandoahHeap::workers() const {
return _workers;
}
inline WorkGang* ShenandoahHeap::get_safepoint_workers() {
inline WorkGang* ShenandoahHeap::safepoint_workers() {
return _safepoint_workers;
}

View file

@ -273,7 +273,7 @@ void ZCollectedHeap::verify_nmethod(nmethod* nm) {
// Does nothing
}
WorkGang* ZCollectedHeap::get_safepoint_workers() {
WorkGang* ZCollectedHeap::safepoint_workers() {
return _runtime_workers.workers();
}

View file

@ -105,7 +105,7 @@ public:
virtual void flush_nmethod(nmethod* nm);
virtual void verify_nmethod(nmethod* nmethod);
virtual WorkGang* get_safepoint_workers();
virtual WorkGang* safepoint_workers();
virtual void gc_threads_do(ThreadClosure* tc) const;

View file

@ -576,7 +576,7 @@ uintx HeapInspection::populate_table(KlassInfoTable* cit, BoolObjectClosure *fil
if (parallel_thread_num > 1) {
ResourceMark rm;
WorkGang* gang = Universe::heap()->get_safepoint_workers();
WorkGang* gang = Universe::heap()->safepoint_workers();
if (gang != NULL) {
// The GC provided a WorkGang to be used during a safepoint.

View file

@ -587,7 +587,7 @@ void SafepointSynchronize::do_cleanup_tasks() {
CollectedHeap* heap = Universe::heap();
assert(heap != NULL, "heap not initialized yet?");
WorkGang* cleanup_workers = heap->get_safepoint_workers();
WorkGang* cleanup_workers = heap->safepoint_workers();
if (cleanup_workers != NULL) {
// Parallel cleanup using GC provided thread pool.
uint num_cleanup_workers = cleanup_workers->active_workers();

View file

@ -1789,7 +1789,7 @@ void VM_HeapDumper::doit() {
set_global_dumper();
set_global_writer();
WorkGang* gang = ch->get_safepoint_workers();
WorkGang* gang = ch->safepoint_workers();
if (gang == NULL) {
work(0);