diff --git a/runtime/src/main/cpp/Memory.cpp b/runtime/src/main/cpp/Memory.cpp index bb91da27324..ca05e29cc88 100644 --- a/runtime/src/main/cpp/Memory.cpp +++ b/runtime/src/main/cpp/Memory.cpp @@ -1420,7 +1420,6 @@ bool ClearSubgraphReferences(ObjHeader* root, bool checked) { * When we see GREY during DFS, it means we see cycle. */ void depthFirstTraversal(ContainerHeader* container, bool* hasCycles) { - if (*hasCycles) return; // Mark GRAY. container->setSeen(); traverseContainerObjectFields(container, [&hasCycles](ObjHeader** location) {