-
Enhancement
-
Resolution: Fixed
-
P5
-
hs17
-
b14
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8297623 | openjdk8u362 | Volker Simonis | P5 | Resolved | Fixed | b05 |
JDK-8285702 | 8u351 | David Buck | P5 | Resolved | Fixed | b01 |
The NamedThread class extends the Thread class with name field. However, it doesn't introduce print() / print_on(outputStream* str) methods to be used when doing a thread dump. As a result, we replicate code like this:
void ConcurrentMarkSweepThread::print_on(outputStream* st) const {
st->print("\"%s\" ", name());
Thread::print_on(st);
st->cr();
}
It'd be nice to avoid this replication by moving this functionality to the NamedThread class.
void ConcurrentMarkSweepThread::print_on(outputStream* st) const {
st->print("\"%s\" ", name());
Thread::print_on(st);
st->cr();
}
It'd be nice to avoid this replication by moving this functionality to the NamedThread class.
- backported by
-
JDK-8285702 Named Thread: introduce print() and print_on(outputStream* st) methods
- Resolved
-
JDK-8297623 Named Thread: introduce print() and print_on(outputStream* st) methods
- Resolved