Code alarm processing

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IB457O

Signed-off-by: zhouwenxuan <zhouwenxuan1@huawei.com>
This commit is contained in:
zhouwenxuan 2024-11-13 18:32:53 +08:00
parent d5527468e1
commit 0eaec3bb22

View File

@ -355,6 +355,7 @@ TaggedObject *Heap::AllocateReadOnlyOrHugeObject(JSHClass *hclass, size_t size)
} else {
object = reinterpret_cast<TaggedObject *>(readOnlySpace_->Allocate(size));
CHECK_OBJ_AND_THROW_OOM_ERROR(object, size, readOnlySpace_, "Heap::AllocateReadOnlyOrHugeObject");
ASSERT(object != nullptr);
object->SetClass(thread_, hclass);
}
#if defined(ECMASCRIPT_SUPPORT_HEAPPROFILER)