From cfe2d2b7ce4aef41b45747d7c4d2d6238fd1808d Mon Sep 17 00:00:00 2001 From: Igor Chevdar Date: Mon, 24 Dec 2018 13:18:04 +0300 Subject: [PATCH] Fixed typo in one of GC passes (#2492) --- runtime/src/main/cpp/Memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/main/cpp/Memory.cpp b/runtime/src/main/cpp/Memory.cpp index bda7951ed41..c05904354fa 100644 --- a/runtime/src/main/cpp/Memory.cpp +++ b/runtime/src/main/cpp/Memory.cpp @@ -754,7 +754,7 @@ void ScanBlack(ContainerHeader* start) { if (color == CONTAINER_TAG_GC_GREEN || color == CONTAINER_TAG_GC_BLACK) continue; container->setColorAssertIfGreen(CONTAINER_TAG_GC_BLACK); } else { - if (container->marked()) continue; + if (!container->marked()) continue; container->unMark(); } traverseContainerReferredObjects(container, [&toVisit](ObjHeader* ref) {