Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
8251837: Rename get_safepoint_workers to safepoint_workers
Reviewed-by: tschatzl
  • Loading branch information
stefank committed Aug 17, 2020
1 parent 1de354a commit 69a95c674155f84331bdd8e41ff9813fb24f1e8d
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
@@ -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
@@ -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;
@@ -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
@@ -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;

@@ -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;
}

@@ -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();
}

@@ -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;

@@ -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.

@@ -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();
@@ -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);

0 comments on commit 69a95c6

Please sign in to comment.