On Fri, 8 Mar 2024 02:35:08 GMT, Man Cao <m...@openjdk.org> wrote:

>> Hi all,
>> 
>> Could anyone review this fix to make serial heap dump only write to a single 
>> file?
>> We highly appreciate the work in 
>> https://bugs.openjdk.org/browse/JDK-8306441. However, many of our customers 
>> still need to use serial heap dump, as they have limited disk space and need 
>> to dump to a network socket.
>> 
>> Tested:
>> Stress tested with a fastdebug build with tests in 
>> `hotspot/jtreg/serviceability/dcmd/gc/HeapDump*`.
>> 
>> -Man
>
> Man Cao has updated the pull request incrementally with one additional commit 
> since the last revision:
> 
>   Fix failure under -XX:+UseSerialGC

Heap dumper was switched to always use segments by 
[JDK-8299426](https://bugs.openjdk.org/browse/JDK-8299426) / 
[JDK-8321565](https://bugs.openjdk.org/browse/JDK-8321565).
I suppose your fix will cause broken heapdump if there are some unmounted 
virtual threads.
You can try to run 
test/hotspot/jtreg/serviceability/jvmti/vthread/HeapDump/VThreadInHeapDump.java

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

PR Comment: https://git.openjdk.org/jdk/pull/18160#issuecomment-1984984146

Reply via email to