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);