mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2025-02-26 07:16:57 +00:00
fix native size bug
Signed-off-by: jinjiawei <jinjiawei2@huawei.com> Change-Id: I8b106798879007e1a1e69a9fdbd4bd7bd92ef5c0
This commit is contained in:
parent
53b83f4e88
commit
3259b1e231
@ -115,8 +115,8 @@ JSHandle<JSNativePointer> ObjectFactory::NewJSNativePointer(void *externalPointe
|
||||
obj->SetBindingSize(nativeBindingsize);
|
||||
obj->SetNativeFlag(flag);
|
||||
|
||||
heap_->IncreaseNativeBindingSize(nativeBindingsize);
|
||||
if (callBack != nullptr) {
|
||||
heap_->IncreaseNativeBindingSize(nativeBindingsize);
|
||||
vm_->PushToNativePointerList(static_cast<JSNativePointer *>(header), isConcurrent);
|
||||
// In some cases, the size of JS/TS object is too small and the native binding size is too large.
|
||||
// Check and try trigger concurrent mark here.
|
||||
|
Loading…
x
Reference in New Issue
Block a user