RFR: 8274794: Print all owned locks in hs_err file [v2]
Thomas Stuefe
stuefe at openjdk.java.net
Mon Oct 18 15:58:51 UTC 2021
On Mon, 18 Oct 2021 12:56:58 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> src/hotspot/share/runtime/mutex.cpp line 345:
>>
>>> 343: // by fatal error handler.
>>> 344: void Mutex::print_owned_locks_on_error(outputStream* st) {
>>> 345: ResourceMark rm;
>>
>> Why is this mark needed?
>
> rank_name() uses resource allocation.
Could move it to print_on then, to limit the chance of actual mallocs happening during error reporting (but I leave that up to you).
-------------
PR: https://git.openjdk.java.net/jdk/pull/5958
More information about the hotspot-dev
mailing list