RFR: JDK-8316691: Heap dump: separate stack traces for mounted virtual threads

Alex Menkov amenkov at openjdk.org
Thu Sep 28 02:53:23 UTC 2023


On Wed, 27 Sep 2023 07:25:50 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> > Is there anything to tell you which carrier thread is associated with which mounted VThread?
> 
> The carrier and virtual threads are distinct and the HPROF format doesn't have record types to support associations like this. However, your question does make me wonder how it behaves when running with +ShowCarrierFrames.

IFAIU +ShowCarrierFrames does not makes sense for "general" heap dump (like generated by "jcmd GC.heap_dump").
We can handle it for HeapDumpOnOutOfMemoryError case (when we add fake frame with OOME ctor), but I don't think it'd add a value for diagnostics.

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

PR Comment: https://git.openjdk.org/jdk/pull/15869#issuecomment-1738362115


More information about the hotspot-runtime-dev mailing list