Commit Graph

18 Commits

Author SHA1 Message Date
wuwanqi
944590dc5a Modify some heap params
Increase maxHeapSize and default nonMovablesize
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7E7GX?from=project-issue

Signed-off-by: wuwanqi <wuwanqi2@huawei.com>
Change-Id: Ic28b7b66ff7d3835b41dffec8aed0f96ff0f2502
2023-06-17 15:39:43 +08:00
Gymee
0500527db8 Remove leading spaces at empty line
Issue: #I67PO6
Signed-off-by: Gymee <yumeijie@huawei.com>
2022-12-27 17:59:06 +08:00
Zhenyu Pan
f7c782f54a Add Upper limit size for JSDeserializer
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I649GD

Signed-off-by: Zhenyu Pan <panzhenyu1@huawei.com>
Change-Id: I36a0683a9da46daa7d897857de05adbb0e9faf86
2022-12-03 15:08:46 +08:00
linxiang
31dbc9a4e3 add log fatal before unreachable
Signed-off-by: linxiang <linxiang8@huawei.com>
Change-Id: I272f5c052e58a1067528893d857dbd460e2d4d86
2022-12-01 16:30:13 +08:00
dingwen
a0258d9875 Add second pass callback for weak reference
Description:the finalize callback of weak reference may execute JS, so it can not invoke during GC process, so we add sencond pass callback and invoke it afetr GC
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5QEZK

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I612eb59ca734a44dd04ef374715660f3e2c69919
2022-09-13 20:23:13 +08:00
dingwen
8448df7965 Throw OOMError instead of Fatal when jsheap is used up
Description:When jsheap is used up, throw OOMError instead of LOG(Fatal)
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5NXCQ

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I0f561f81fcd8a85ef5cf7792f9b455f0b5942959
2022-08-29 11:41:11 +08:00
zhangyukun8
7adfa5a022 Fix cpuprofile crash due to stackoverflow
1.__builtin_frame_address will return current sp,
but some stack spaces have been used and cause stackoverflow

Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5NW7W?from=project-issue

Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: If0fe59531530cbfdd224292419791796afc1516f
2022-08-26 16:46:09 +08:00
openharmony_ci
02c409516f
!2037 cpuprofile crash of applications
Merge pull request !2037 from zhangyukun8/master
2022-08-18 02:21:10 +00:00
zhangyukun8
01c616bf0b Fix cpuprofile crash of applications
1.asm stack size is determined by both thread stack size and max value
of stack size

Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5LYD1?from=project-issue

Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ib19bcc9f52b80f6fd22c45429998e06f9d7b89c0
2022-08-17 15:33:16 +08:00
yingguofeng@huawei.com
ed3d8eb76b perf(memory): Improper use of chunk leads to memory leakage.
The life cycle of the chunk under ECMA is the same as that of VM.
  Temporary objects or objects with a shorter life cycle than VM cannot be allocated through the chunk.

Closes: #I5MNM8

Change-Id: I0ceee15da0045d56c036d9c86f6949fe0db7e5b8
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-08-17 10:59:09 +08:00
wuwanqi
d880881b11 Default nonmovable space size is not big enough
allocate a larger default nonmovable space
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5KARR?from=project-issue

Signed-off-by: wuwanqi <wuwanqi2@huawei.com>
Change-Id: If5b63b48c2570d397de2c66fef34a72bb84f6d07
2022-08-03 10:06:30 +08:00
Riachel
96adb30222 Descriptor: delete native_stack.h, trace.h and mem.h
details: delete native_stack.h, trace.h and mem.h
issue:https://gitee.com/openharmony/arkcompiler_runtime_core/issues/I5IS38

Signed-off-by: Riachel <caolili14@huawei.com>
2022-07-28 19:15:13 +08:00
openharmony_ci
a41eddc321
!1774 fix the scenes that huge space committed size is big, but old space committed size is small
Merge pull request !1774 from lukai/master
2022-07-18 09:17:03 +00:00
lukai
ffb28f6588 to fix the scenes that huge space committed size is big, but old space committed size is small
old space and huge space share the same capacity to trigger-gc
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/new?issue%5Bassignee_id%5D=0&issue%5Bmilestone_id%5D=0

Change-Id: Ibeef144079fc29159701ac008a0fc5527664be07
Signed-off-by: lukai <lukai25@huawei.com>
2022-07-18 11:11:43 +08:00
zhangyukun8
b789fafc2f Add stackoverflow check of asm interpreter
1. check rsp stackoverflow
2. add calltype testcase

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5DJR0?from=project-issue

Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: Ib7f2f32588eaed74e6aff5b9c1ad37c39c81509e
2022-07-13 10:54:53 +08:00
lukai
a2d3403952 add read-only space
realize read-only space to manage read-only object
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5DHA7?from=project-issue

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I94007e4a2ad990ca21a182afa182713cae390a76
2022-06-28 09:15:29 +08:00
lukai
4198c6add1 adjust pool size and related vm-memory according to physical memory
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5CCG0?from=project-issue

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I46bf3a11ef509ece55b45edc92bb7cb68c100dfa
2022-06-18 14:38:43 +08:00
lukai
6eb0577699 support memory parameters configuration
1. heap configuration including heapSize and space capaticity
2. other parameters such as gcThreadNum, longPauseTime.
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I59HYO?from=project-issue

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: If3bfe7338ae0712809d9750fef3bbbb14017223f
2022-05-30 17:22:08 +08:00