dragonwell-project / dragonwell11

Alibaba Dragonwell11 JDK
https://www.aliyun.com/product/dragonwell
GNU General Public License v2.0
557 stars 113 forks source link

[Backport] 8319053: Segment dump files remain after parallel heap dump on Windows #715

Closed y1yang0 closed 10 months ago

y1yang0 commented 10 months ago

Summary: Segment file is closed from DumpWriter dtor. On Unix systems remove can delete an opened file, on Windows it fails with "access denied". The fix destroys DumpWriter objects for segment files after all data are dumped

Test Plan: HeapDumpParallelTest.java

Reviewed-by: D-D-H, yuleil

Issue: #714