RFR: 8280289: Enhance debug pp() command with NMT info [v3]
Zhengyu Gu
zgu at openjdk.java.net
Mon Jan 24 14:03:09 UTC 2022
On Mon, 24 Jan 2022 06:18:32 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> Then malloc case is even worse, the block could be deallocated by another thread. Even `oop->print()` is questionable ...
>
> Can the printing be done inside do_allocation_site() instead? That way we are holding the ThreadCritical that will prevent concurrent NMT record/remove operations.
Yes, we can. But I think dealing with malloc'd memory is more problematic, if call triggers concurrent execution.
I am going to withdraw this for now and take another look how debuggers behave.
Thanks
-------------
PR: https://git.openjdk.java.net/jdk/pull/7160
More information about the hotspot-dev
mailing list