diff --git a/runtime/mem/gc/g1/g1-gc.cpp b/runtime/mem/gc/g1/g1-gc.cpp index aa795fc81d665484a1070fc6b362a2409329f6d1..02734db3d1ee671c27b3e6ac0b9a99ba6e57ff5f 100644 --- a/runtime/mem/gc/g1/g1-gc.cpp +++ b/runtime/mem/gc/g1/g1-gc.cpp @@ -815,7 +815,7 @@ template bool G1GC::InGCSweepRange(const ObjectHeader *object) const { [[maybe_unused]] auto phase = this->GetGCPhase(); - ASSERT_DO(!this->collection_set_.empty() || this->IsFullGC() || phase == GCPhase::GC_PHASE_REMARK, + ASSERT_DO(!this->collection_set_.empty() || this->IsFullGC(), std::cerr << "Incorrect phase in InGCSweepRange: " << static_cast(phase) << "\n"); ASSERT(PoolManager::GetMmapMemPool()->GetSpaceTypeForAddr(object) == SpaceType::SPACE_TYPE_OBJECT ||