Skip to content

Commit 51c8ac3

Browse files
committedAug 17, 2020
8251837: Rename get_safepoint_workers to safepoint_workers
Reviewed-by: tschatzl
1 parent 3494949 commit 51c8ac3

10 files changed

+10
-10
lines changed
 

‎src/hotspot/share/gc/g1/g1CollectedHeap.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1437,7 +1437,7 @@ class G1CollectedHeap : public CollectedHeap {
14371437
virtual bool supports_concurrent_gc_breakpoints() const;
14381438
bool is_heterogeneous_heap() const;
14391439

1440-
virtual WorkGang* get_safepoint_workers() { return _workers; }
1440+
virtual WorkGang* safepoint_workers() { return _workers; }
14411441

14421442
// The methods below are here for convenience and dispatch the
14431443
// appropriate method depending on value of the given VerifyOption

‎src/hotspot/share/gc/parallel/parallelScavengeHeap.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class ParallelScavengeHeap : public CollectedHeap {
220220
virtual void gc_threads_do(ThreadClosure* tc) const;
221221
virtual void print_tracing_info() const;
222222

223-
virtual WorkGang* get_safepoint_workers() { return &_workers; }
223+
virtual WorkGang* safepoint_workers() { return &_workers; }
224224

225225
PreGenGCValues get_pre_gc_values() const;
226226
void print_heap_change(const PreGenGCValues& pre_gc_values) const;

‎src/hotspot/share/gc/shared/collectedHeap.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ class CollectedHeap : public CHeapObj<mtInternal> {
499499
// concurrent marking) for an intermittent non-GC safepoint.
500500
// If this method returns NULL, SafepointSynchronize will
501501
// perform cleanup tasks serially in the VMThread.
502-
virtual WorkGang* get_safepoint_workers() { return NULL; }
502+
virtual WorkGang* safepoint_workers() { return NULL; }
503503

504504
// Support for object pinning. This is used by JNI Get*Critical()
505505
// and Release*Critical() family of functions. If supported, the GC

‎src/hotspot/share/gc/shenandoah/shenandoahHeap.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ class ShenandoahHeap : public CollectedHeap {
195195
void assert_gc_workers(uint nworker) NOT_DEBUG_RETURN;
196196

197197
WorkGang* workers() const;
198-
WorkGang* get_safepoint_workers();
198+
WorkGang* safepoint_workers();
199199

200200
void gc_threads_do(ThreadClosure* tcl) const;
201201

‎src/hotspot/share/gc/shenandoah/shenandoahHeap.inline.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ inline WorkGang* ShenandoahHeap::workers() const {
6666
return _workers;
6767
}
6868

69-
inline WorkGang* ShenandoahHeap::get_safepoint_workers() {
69+
inline WorkGang* ShenandoahHeap::safepoint_workers() {
7070
return _safepoint_workers;
7171
}
7272

‎src/hotspot/share/gc/z/zCollectedHeap.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void ZCollectedHeap::verify_nmethod(nmethod* nm) {
273273
// Does nothing
274274
}
275275

276-
WorkGang* ZCollectedHeap::get_safepoint_workers() {
276+
WorkGang* ZCollectedHeap::safepoint_workers() {
277277
return _runtime_workers.workers();
278278
}
279279

‎src/hotspot/share/gc/z/zCollectedHeap.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class ZCollectedHeap : public CollectedHeap {
105105
virtual void flush_nmethod(nmethod* nm);
106106
virtual void verify_nmethod(nmethod* nmethod);
107107

108-
virtual WorkGang* get_safepoint_workers();
108+
virtual WorkGang* safepoint_workers();
109109

110110
virtual void gc_threads_do(ThreadClosure* tc) const;
111111

‎src/hotspot/share/memory/heapInspection.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ uintx HeapInspection::populate_table(KlassInfoTable* cit, BoolObjectClosure *fil
576576
if (parallel_thread_num > 1) {
577577
ResourceMark rm;
578578

579-
WorkGang* gang = Universe::heap()->get_safepoint_workers();
579+
WorkGang* gang = Universe::heap()->safepoint_workers();
580580
if (gang != NULL) {
581581
// The GC provided a WorkGang to be used during a safepoint.
582582

‎src/hotspot/share/runtime/safepoint.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ void SafepointSynchronize::do_cleanup_tasks() {
587587

588588
CollectedHeap* heap = Universe::heap();
589589
assert(heap != NULL, "heap not initialized yet?");
590-
WorkGang* cleanup_workers = heap->get_safepoint_workers();
590+
WorkGang* cleanup_workers = heap->safepoint_workers();
591591
if (cleanup_workers != NULL) {
592592
// Parallel cleanup using GC provided thread pool.
593593
uint num_cleanup_workers = cleanup_workers->active_workers();

‎src/hotspot/share/services/heapDumper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1789,7 +1789,7 @@ void VM_HeapDumper::doit() {
17891789
set_global_dumper();
17901790
set_global_writer();
17911791

1792-
WorkGang* gang = ch->get_safepoint_workers();
1792+
WorkGang* gang = ch->safepoint_workers();
17931793

17941794
if (gang == NULL) {
17951795
work(0);

0 commit comments

Comments
 (0)
Please sign in to comment.