mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-23 10:09:54 +00:00
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:
parent
d5527468e1
commit
0eaec3bb22
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user