If PointerLocation discovers that an address is for a JNI local ref, it will 
print information about the thread that owns the JNI local ref. For JavaThreads 
it calls the printThreadIDOn(tty) method. There's a comment on the call that 
says that it 'includes "\n"'. This is actually not true, and a separate 
println() is needed. I noticed this when using the clhsdb findpc command on a 
JNI local ref and noted that the next "hdsb> " prompt was printed at the end of 
the findpc output instead of on a new line.

-------------

Commit messages:
 - Need a newline after printThreadIDOn() call

Changes: https://git.openjdk.org/jdk/pull/19402/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19402&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8332919
  Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/19402.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/19402/head:pull/19402

PR: https://git.openjdk.org/jdk/pull/19402

Reply via email to