diff --git a/runtime/src/main/cpp/Memory.cpp b/runtime/src/main/cpp/Memory.cpp index e238100eb8a..bd773932f61 100644 --- a/runtime/src/main/cpp/Memory.cpp +++ b/runtime/src/main/cpp/Memory.cpp @@ -706,7 +706,6 @@ ObjHeader** GetParamSlotIfArena(ObjHeader* param, ObjHeader** localSlot) { void UpdateReturnRef(ObjHeader** returnSlot, const ObjHeader* object) { if (isArenaSlot(returnSlot)) { - return; if (object == nullptr || (object->container()->refCount_ & CONTAINER_TAG_MASK) > CONTAINER_TAG_NORMAL) { // Not a subject of reference counting.