On Wed, 3 Apr 2024 10:09:20 GMT, Kevin Walls <kev...@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