Skip to content

Commit de8ec1d

Browse files
committed
8293492: ShenandoahControlThread missing from hs-err log and thread dump
Reviewed-by: phh Backport-of: 85ec1f8d020cf2a9d7dfcc9ed75e43f0cd61c1f2
1 parent ff0ee6d commit de8ec1d

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

src/hotspot/share/gc/shenandoah/shenandoahControlThread.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ShenandoahControlThread::ShenandoahControlThread() :
5353
_requested_gc_cause(GCCause::_no_cause_specified),
5454
_degen_point(ShenandoahGC::_degenerated_outside_cycle),
5555
_allocs_seen(0) {
56-
56+
set_name("Shenandoah Control Thread");
5757
reset_gc_id();
5858
create_and_start();
5959
_periodic_task.enroll();
@@ -623,16 +623,6 @@ size_t ShenandoahControlThread::get_gc_id() {
623623
return Atomic::load(&_gc_id);
624624
}
625625

626-
void ShenandoahControlThread::print() const {
627-
print_on(tty);
628-
}
629-
630-
void ShenandoahControlThread::print_on(outputStream* st) const {
631-
st->print("Shenandoah Concurrent Thread");
632-
Thread::print_on(st);
633-
st->cr();
634-
}
635-
636626
void ShenandoahControlThread::start() {
637627
create_and_start();
638628
}

src/hotspot/share/gc/shenandoah/shenandoahControlThread.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,6 @@ class ShenandoahControlThread: public ConcurrentGCThread {
142142
void start();
143143
void prepare_for_graceful_shutdown();
144144
bool in_graceful_shutdown();
145-
146-
char* name() const { return (char*)"ShenandoahControlThread";}
147-
148-
// Printing
149-
void print_on(outputStream* st) const;
150-
void print() const;
151145
};
152146

153147
#endif // SHARE_GC_SHENANDOAH_SHENANDOAHCONTROLTHREAD_HPP

src/hotspot/share/gc/shenandoah/shenandoahHeap.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,7 @@ void ShenandoahHeap::prepare_for_verify() {
11821182
}
11831183

11841184
void ShenandoahHeap::gc_threads_do(ThreadClosure* tcl) const {
1185+
tcl->do_thread(_control_thread);
11851186
workers()->threads_do(tcl);
11861187
if (_safepoint_workers != NULL) {
11871188
_safepoint_workers->threads_do(tcl);

0 commit comments

Comments
 (0)