diff --git a/ecmascript/object_factory.cpp b/ecmascript/object_factory.cpp index a591229c3e0050dbb5e0c9998ef54a1cfe257103..7066e68e79f2ee6fff3d6b0ec5ae4407ab116da7 100644 --- a/ecmascript/object_factory.cpp +++ b/ecmascript/object_factory.cpp @@ -3646,7 +3646,7 @@ void ObjectFactory::NewObjectHook() const !heap_->InSensitiveStatus() && heap_->TriggerCollectionOnNewObjectEnabled()) { if (vm_->GetJSOptions().ForceFullGC()) { if (g_isEnableCMCGC) { - common::BaseRuntime::RequestGC(common::GcType::ASYNC); + common::BaseRuntime::RequestGC(common::GcType::FULL); } else { vm_->CollectGarbage(TriggerGCType::YOUNG_GC); vm_->CollectGarbage(TriggerGCType::OLD_GC); diff --git a/ecmascript/shared_object_factory.cpp b/ecmascript/shared_object_factory.cpp index 9167860e3e932a02c34a5bd959ad5923b32dc080..266a02fac5934d790ca42f1993b5806a78e13e30 100644 --- a/ecmascript/shared_object_factory.cpp +++ b/ecmascript/shared_object_factory.cpp @@ -36,7 +36,7 @@ void ObjectFactory::NewSObjectHook() const return; } if (g_isEnableCMCGC) { - common::BaseRuntime::RequestGC(common::GcType::ASYNC); + common::BaseRuntime::RequestGC(common::GcType::FULL); } else { if (count++ % frequency == 0) { if (count % (CONCURRENT_MARK_FREQUENCY_FACTOR * frequency) == 0) {