RFR: JDK-8290067: Show stack dimensions in UL logging when attaching threads

Thomas Stuefe stuefe at openjdk.org
Mon Jul 11 14:10:34 UTC 2022


While investigating [JDK-8290059](https://bugs.openjdk.org/browse/JDK-8290059), I found it useful to know the stack dimensions of the attaching thread. That should be added to the "Thread attached" log line.

Before:


[1.051s][info ][os,thread] Thread attached (tid: 167903, pthread id: 140230406712120.


Now:


[1.051s][info ][os,thread] Thread attached (tid: 167903, pthread id: 140230406712120, stack: 0x00007f89ef942a78 - 0x00007f89ef924000 (122k) ).

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

Commit messages:
 - add stack dims to UL

Changes: https://git.openjdk.org/jdk/pull/9447/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9447&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8290067
  Stats: 16 lines in 4 files changed: 7 ins; 0 del; 9 mod
  Patch: https://git.openjdk.org/jdk/pull/9447.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9447/head:pull/9447

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


More information about the hotspot-runtime-dev mailing list