Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
8251837: Rename get_safepoint_workers to safepoint_workers
Browse files Browse the repository at this point in the history
Reviewed-by: tschatzl
  • Loading branch information
stefank committed Aug 17, 2020
1 parent 1de354a commit 69a95c6
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/g1/g1CollectedHeap.hpp
Expand Up @@ -1437,7 +1437,7 @@ class G1CollectedHeap : public CollectedHeap {
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
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/parallel/parallelScavengeHeap.hpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/shared/collectedHeap.hpp
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/shenandoah/shenandoahHeap.hpp
Expand Up @@ -195,7 +195,7 @@ class ShenandoahHeap : public CollectedHeap {
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;

Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/shenandoah/shenandoahHeap.inline.hpp
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/z/zCollectedHeap.cpp
Expand Up @@ -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();
}

Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/gc/z/zCollectedHeap.hpp
Expand Up @@ -105,7 +105,7 @@ class ZCollectedHeap : public CollectedHeap {
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;

Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/memory/heapInspection.cpp
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/runtime/safepoint.cpp
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/services/heapDumper.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 69a95c6

Please sign in to comment.