From b023824a7ce7322390c473ef88d3451cb972312b Mon Sep 17 00:00:00 2001 From: Liang Mao Date: Thu, 2 Nov 2023 14:01:12 +0800 Subject: [PATCH] [Backport] Fix windows build failure Summary: Fix windwos build failure from backport of 8275415 Test Plan: CICD Reviewed-by: ddh, yanglong Issue: https://github.com/dragonwell-project/dragonwell11/issues/704 --- src/hotspot/share/jfr/leakprofiler/chains/edgeStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/share/jfr/leakprofiler/chains/edgeStore.cpp b/src/hotspot/share/jfr/leakprofiler/chains/edgeStore.cpp index 4a87ff4ccdf..fa014f19bb4 100644 --- a/src/hotspot/share/jfr/leakprofiler/chains/edgeStore.cpp +++ b/src/hotspot/share/jfr/leakprofiler/chains/edgeStore.cpp @@ -279,7 +279,7 @@ static const int initial_size = 64; static int save(const StoredEdge* edge) { assert(edge != NULL, "invariant"); if (_leak_context_edges == NULL) { - _leak_context_edges = new (ResourceObj::C_HEAP, mtTracing)GrowableArray(initial_size, mtTracing); + _leak_context_edges = new (ResourceObj::C_HEAP, mtTracing)GrowableArray(initial_size, true, mtTracing); _leak_context_edges->append(NULL); // next idx now at 1, for disambiguation in markword. } return _leak_context_edges->append(edge);