RFR: JDK-8306510: Print number of threads and stack sizes in error reports [v4]
Thomas Stuefe
stuefe at openjdk.org
Fri Apr 28 15:37:53 UTC 2023
On Fri, 28 Apr 2023 14:47:04 GMT, Gerard Ziemski <gziemski at openjdk.org> wrote:
> I still see a difference in how we report the thread info:
>
> ```
> Java Threads: ( => current thread ):
> 0x00007f0ac443a4b0 JavaThread "Notification Thread" daemon [_thread_blocked, id=239106, stack(0x00007f0a88fb6000,0x00007f0a890b7000) (1028K)]
> ```
>
> vs
>
> ```
> Other Threads:
> 0x00007f0ac4290f00 VMThread "VM Thread" [stack: 0x00007f0a98141000,0x00007f0a98241000] (1024K) [id=239095]
> ```
>
> Did you decide not to pursue it?
>
I did though
https://github.com/openjdk/jdk/pull/13556/commits/b109cba11ed420a7f1bc4c05d25a43f6905b8113
163 Java Threads: ( => current thread )
164 =>0x00007f9328028d10 JavaThread "main" [_thread_in_vm, id=104806, stack(0x00007f932fdf0000,0x00007f932fef1000) (1028K)]
165 0x00007f932826dce0 JavaThread "Reference Handler" daemon [_thread_blocked, id=104813, stack(0x00007f92e780d000,0x00007f92e790e000) (1028K)]
166 0x00007f932826f4c0 JavaThread "Finalizer" daemon [_thread_blocked, id=104814, stack(0x00007f92e770c000,0x00007f92e780d000) (1028K)]
167 0x00007f9328271300 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=104815, stack(0x00007f92e760b000,0x00007f92e770c000) (1028K)]
168 0x00007f9328272b20 JavaThread "Service Thread" daemon [_thread_blocked, id=104816, stack(0x00007f92e750a000,0x00007f92e760b000) (1028K)]
169 0x00007f9328274200 JavaThread "Monitor Deflation Thread" daemon [_thread_blocked, id=104817, stack(0x00007f92e7409000,0x00007f92e750a000) (1028K)]
170 0x00007f9328275ef0 JavaThread "C2 CompilerThread0" daemon [_thread_blocked, id=104818, stack(0x00007f92e7308000,0x00007f92e7409000) (1028K)]
171 0x00007f9328277780 JavaThread "C1 CompilerThread0" daemon [_thread_blocked, id=104819, stack(0x00007f92e7207000,0x00007f92e7308000) (1028K)]
172 0x00007f932829f370 JavaThread "Notification Thread" daemon [_thread_blocked, id=104820, stack(0x00007f92e7036000,0x00007f92e7137000) (1028K)]
173 Total: 9
174
175 Other Threads:
176 0x00007f932822a3e0 VMThread "VM Thread" [id=104812, stack:(0x00007f92e7e7f000,0x00007f92e7f7f000) (1024K)]
177 0x00007f93282a1380 WatcherThread "VM Periodic Task Thread" [id=104821, stack:(0x00007f92e2f00000,0x00007f92e3000000) (1024K)]
178 0x00007f932805add0 WorkerThread "GC Thread#0" [id=104807, stack:(0x00007f932c79c000,0x00007f932c89c000) (1024K)]
179 0x00007f932806c240 ConcurrentGCThread "G1 Main Marker" [id=104808, stack:(0x00007f932c69b000,0x00007f932c79b000) (1024K)]
180 0x00007f932806d3b0 WorkerThread "G1 Conc#0" [id=104809, stack:(0x00007f932c59a000,0x00007f932c69a000) (1024K)]
181 0x00007f932812ea00 ConcurrentGCThread "G1 Refine#0" [id=104810, stack:(0x00007f92fc1a6000,0x00007f92fc2a6000) (1024K)]
182 0x00007f932812fb60 ConcurrentGCThread "G1 Service" [id=104811, stack:(0x00007f92fc0a5000,0x00007f92fc1a5000) (1024K)]
183 Total: 7
You sure you looked at the latest version?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13556#issuecomment-1527738189
More information about the hotspot-runtime-dev
mailing list