mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8151442: jstack doesn't close quotation marks properly with threads' name greater than 1996 characters
Reviewed-by: dsamersoff, kevinw
This commit is contained in:
parent
0c5e3bcbd6
commit
6f3cb076c4
2 changed files with 78 additions and 2 deletions
|
@ -153,7 +153,6 @@ void universe_post_module_init(); // must happen after call_initPhase2
|
|||
// Current thread is maintained as a thread-local variable
|
||||
THREAD_LOCAL_DECL Thread* Thread::_thr_current = NULL;
|
||||
#endif
|
||||
|
||||
// Class hierarchy
|
||||
// - Thread
|
||||
// - VMThread
|
||||
|
@ -2888,7 +2887,9 @@ void JavaThread::print_thread_state() const {
|
|||
|
||||
// Called by Threads::print() for VM_PrintThreads operation
|
||||
void JavaThread::print_on(outputStream *st) const {
|
||||
st->print("\"%s\" ", get_thread_name());
|
||||
st->print_raw("\"");
|
||||
st->print_raw(get_thread_name());
|
||||
st->print_raw("\" ");
|
||||
oop thread_oop = threadObj();
|
||||
if (thread_oop != NULL) {
|
||||
st->print("#" INT64_FORMAT " ", java_lang_Thread::thread_id(thread_oop));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue