On Fri, 8 Dec 2023 22:29:12 GMT, Alex Menkov <[email protected]> wrote:
> Original fix for JDK-8299426 (Heap dump does not contain virtual Thread stack
> references, #16665) caused failures of new test (added while #16665 was under
> review):
> test/hotspot/jtreg/compiler/c2/TestReduceAllocationAndHeapDump.java in many
> tears and was reverted.
>
> Segmented heap dump assumes "merge" stage is executed outside of safepoint
> (to not block the VM), but heap dump may happen during safepoint (and
> TestReduceAllocationAndHeapDump.java test provoke the case).
> The change contains original fix for JDK-8299426 ("[original
> fix](https://github.com/openjdk/jdk/commit/bdbf768eafa86e0007aca4188e0567693afe9071)")
> and removes asserts from HeapMerger ([allow heapdump in
> safepoints](https://github.com/openjdk/jdk/commit/44670ca4bf55dd2a5f1f44686758844aed68937e)).
>
> Run tier1-3 and heapdump-related tests.
This pull request has now been integrated.
Changeset: cf948548
Author: Alex Menkov <[email protected]>
URL:
https://git.openjdk.org/jdk/commit/cf948548c390c42ca63525d41a9d63ff31349c3a
Stats: 319 lines in 3 files changed: 152 ins; 81 del; 86 mod
8321565: [REDO] Heap dump does not contain virtual Thread stack references
Reviewed-by: sspitsyn, yyang, dholmes
-------------
PR: https://git.openjdk.org/jdk/pull/17040