From c8eea59f508158075382079316cf0990116ff98e Mon Sep 17 00:00:00 2001 From: Chris Plummer Date: Wed, 29 May 2024 18:23:23 +0000 Subject: [PATCH] 8332919: SA PointerLocation needs to print a newline after dumping java thread info for JNI Local Ref Reviewed-by: kevinw, dholmes --- .../classes/sun/jvm/hotspot/utilities/PointerLocation.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/utilities/PointerLocation.java b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/utilities/PointerLocation.java index 393ad76a011..c3f09bd5e3d 100644 --- a/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/utilities/PointerLocation.java +++ b/src/jdk.hotspot.agent/share/classes/sun/jvm/hotspot/utilities/PointerLocation.java @@ -359,7 +359,8 @@ public class PointerLocation { tty.print(" JNI handle block (" + handleBlock.top() + " handle slots present)"); if (handleThread.isJavaThread()) { tty.print(" for JavaThread "); - ((JavaThread) handleThread).printThreadIDOn(tty); // includes "\n" + ((JavaThread) handleThread).printThreadIDOn(tty); + tty.println(); } else { tty.println(" for a non-Java Thread"); }