Skip to content

Commit

Permalink
[Backport] Fix windows build failure
Browse files Browse the repository at this point in the history
Summary: Fix windwos build failure from backport of 8275415

Test Plan: CICD

Reviewed-by: ddh, yanglong

Issue: #704
  • Loading branch information
mmyxym committed Nov 2, 2023
1 parent 65677bf commit b023824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/jfr/leakprofiler/chains/edgeStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<const StoredEdge*>(initial_size, mtTracing);
_leak_context_edges = new (ResourceObj::C_HEAP, mtTracing)GrowableArray<const StoredEdge*>(initial_size, true, mtTracing);
_leak_context_edges->append(NULL); // next idx now at 1, for disambiguation in markword.
}
return _leak_context_edges->append(edge);
Expand Down

0 comments on commit b023824

Please sign in to comment.