8268852: AsyncLogWriter should not overide is_Named_thread()
Reviewed-by: dholmes, ysuenaga
This commit is contained in:
parent
b836b83b2a
commit
02c9bf087e
src/hotspot/share
@ -157,7 +157,6 @@ class AsyncLogWriter : public NonJavaThread {
|
||||
log_debug(logging, thread)("starting AsyncLog Thread tid = " INTX_FORMAT, os::current_thread_id());
|
||||
}
|
||||
char* name() const override { return (char*)"AsyncLog Thread"; }
|
||||
bool is_Named_thread() const override { return true; }
|
||||
void print_on(outputStream* st) const override {
|
||||
st->print("\"%s\" ", name());
|
||||
Thread::print_on(st);
|
||||
|
@ -646,7 +646,9 @@ void Thread::print_on_error(outputStream* st, char* buf, int buflen) const {
|
||||
else if (is_GC_task_thread()) { st->print("GCTaskThread"); }
|
||||
else if (is_Watcher_thread()) { st->print("WatcherThread"); }
|
||||
else if (is_ConcurrentGC_thread()) { st->print("ConcurrentGCThread"); }
|
||||
else { st->print("Thread"); }
|
||||
else if (this == AsyncLogWriter::instance()) {
|
||||
st->print("%s", this->name());
|
||||
} else { st->print("Thread"); }
|
||||
|
||||
if (is_Named_thread()) {
|
||||
st->print(" \"%s\"", name());
|
||||
|
Loading…
x
Reference in New Issue
Block a user