On Tue, 2 Apr 2024 02:04:17 GMT, Yi Yang <yy...@openjdk.org> wrote:

> * jcmd GC.heap_dump command; `AttachListenerThread`
> 
>     * HotSpotDiagnosticMXBean.dumpHeap(); `JavaThread`
> 
>     * HeapDumpBeforeFullGC, HeapDumpAfterFullGC VM options; `VMThread`
> 
>     * HeapDumpOnOutOfMemoryError VM option. `VMThread`
>       Mabye we can always use AttachListenerThread(via Handshake) or new 
> virtual thread?

AttachListenerThread may not exist (it's created on demand).
Heap dump for HeapDumpOnOutOfMemoryError is performed on the current java 
thread.
I'm not sure I follow the proposal. What if the profit in using separate thread 
for merging?

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

PR Comment: https://git.openjdk.org/jdk/pull/18571#issuecomment-2033101158

Reply via email to