RFR: JDK-8322042: HeapDumper should perform merge on the current thread instead of VMThread [v2]
Alex Menkov
amenkov at openjdk.org
Wed Apr 3 20:37:09 UTC 2024
On Wed, 3 Apr 2024 10:09:20 GMT, Kevin Walls <kevinw at openjdk.org> wrote:
> Are we saying there is never any need to perform the merge in a VM Operation? Originally (JDK-8306441) it's either done in the attach thread, or a VM operation if we are in another thread. But maybe that was just being cautious.
Correct.
Originally it was implemented for AttachListener thread only for safety (and heap dump using jcmd was point of interest).
I didn't find issues with concurrent dumping (actually with concurrent merging, dumping itself is performed in VM_HeapDumper at safepoint).
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18571#issuecomment-2035530652
More information about the serviceability-dev
mailing list