[lilliput-jdk17u:lilliput] RFR: 8316735: Print LockStack in hs_err files

Aleksey Shipilev shade at openjdk.org
Fri Apr 5 10:07:17 UTC 2024


On Fri, 5 Apr 2024 09:55:36 GMT, Roman Kennke <rkennke at openjdk.org> wrote:

> I'd like to backport https://github.com/openjdk/jdk/commit/20ff603108a52468dd41020cbf6c0bf669e23861, it is a nice improvement, and eases subsequent backports. The backport was not clean, there have been some context diffs and the macro structure in vmError.cpp is different.

src/hotspot/share/utilities/vmError.cpp line 953:

> 951:     if (_verbose && _thread != nullptr && _thread->is_Java_thread() && LockingMode == LM_LIGHTWEIGHT) {
> 952:       st->print_cr("Lock stack of current Java thread (top to bottom):");
> 953:       reinterpret_cast<JavaThread*>(_thread)->lock_stack().print_on(st);

I think this one is `_thread->as_Java_thread()`.

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

PR Review Comment: https://git.openjdk.org/lilliput-jdk17u/pull/70#discussion_r1553316033


More information about the lilliput-dev mailing list