29 Commits

Author SHA1 Message Date
fangting
cdbfa4340e optimize compiler
Issue:#IALVU8
Signed-off-by: fangting <fangting12@huawei.com>
2024-08-27 11:02:23 +08:00
jinjiawei
e70b31bb79 Looper idle gc
Issue:    https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/IACROC
Signed-off-by: jinjiawei <jinjiawei2@huawei.com>
Change-id: ie9ecdeadd6e70706f34520e2987d4a7d785bd11b
2024-08-09 09:11:23 +08:00
zhangyiwei
2990f9eb23 sticky gc
Signed-off-by: zhangyiwei <zhangyiwei11@huawei.com>
Change-Id: Id1d6b22d966b7342f832b4ca197c751df791cf48
2024-06-01 09:58:09 +08:00
chentianyu
93babd1795 Enhance heap verify
Signed-off-by: chentianyu <chentianyu31@huawei.com>
Change-Id: I23890f3531c417e3adda5da0a2b7b231dacd2cf6
2024-02-08 13:12:59 +08:00
huangzhenghua
9e86c99634 Modify unreasonable type of double in number_helper, mem_controller and some files.
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5R9EW
Signed-off-by: huangzhenghua <huangzhenghua3@huawei.com>
Change-Id: I197ba5371296edf993c8b0ec917b548f8cf9d487
2022-09-15 22:42:46 +08:00
xiongluo
d6ac1b832c Add a trick to trigger full gc by lower survival rate.
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5LGKC

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-08-15 17:22:02 +08:00
hjzhangcm
76b6ee0329 fix codex warning
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com>
2022-07-28 11:15:41 +08:00
linxiang
d350521213 modify 1024 * 1024 to MB
Signed-off-by: linxiang <linxiang8@huawei.com>
Change-Id: I08862d937e693867d02e4340d653692c06279050
2022-07-19 19:21:58 +08:00
wengchangcheng
6e5a7e8362 Descriptor: ark hilog refactor
details:
1. use hilog in ohos device
2. use panda logger in host
issue:  https://gitee.com/openharmony/ark_js_runtime/issues/I5FR5J

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I6f5de00751154bdb6aac3101515961a3a4432e80
2022-07-06 22:55:49 +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
xiongluo
d1b7433a1b optimize smart gc params
merge bool params and reduce param number

issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5B4MQ

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-06-09 20:05:08 +08:00
xiongluo
87d021cec9 add smart gc interface and change gc params
add interface to change gc params
close concurrent sweep and mark in background
limit the post task num

issue:https://gitee.com/openharmony/ability_ability_runtime/issues/I59N1V

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-06-07 14:33:15 +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
openharmony_ci
fc582ec959
!1155 Refactor the GC related components - Part 4
Merge pull request !1155 from klooer/master
2022-04-30 09:45:48 +00:00
xiongluo
5208f3e33a change the calculation method when mem is near oom
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-04-28 21:11:09 -10:00
Yuqiang Xian
b9cf0ffccb Merge remote-tracking branch 'oh/master' 2022-04-28 11:24:41 +08:00
Yuqiang Xian
b733e9e87e Tidy up Heap class; re-organize the fields by categories and add descriptions.
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I551ZU

Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com>
Change-Id: I53a4f5840a42d2b67ef7200145250e8e19ce072d
2022-04-28 11:14:39 +08:00
xiongluo
6e4af76501 refactor the uint fileds in jsmethod
1. make bytecodeArraySize, hotnessCounter, methodId, slotSize into one field methodField.
2. change the interpreter_stub to fit the hotness counter in jsmethod.
3. fix the fail problem of mem controller test.
4. Adjust the timeout value of uinittest

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-04-27 02:43:40 -10:00
Yuqiang Xian
ba06b40721 Rename GC types and spaces to make it more consistent and clear.
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I54NZF

Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com>
Change-Id: Ieeb356480fe6767ec6c2c53b6119e8c4b99d9ff9
2022-04-27 18:28:18 +08:00
Yuqiang Xian
5fcdf992a7 Fix some terminologies used in concurrent marker and sweeper.
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I54NZF

Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com>
Change-Id: I2d398290ff7c0febffa7eb15bac78a4c3d9bc6a1
2022-04-27 18:28:18 +08:00
Yuqiang Xian
11c9f82708 Refactor the GC related components.
Part 1: Rename evacuator classes and provide a generic GarbageCollector interface.

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I54NZF

Change-Id: Iedc7817f55afa136df5ece95d456b85a1bd5aadc
Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com>
2022-04-26 14:33:49 +08:00
yingguofeng@huawei.com
e89ced9203 Heap code refactoring
Delete MemManager class. The allocation function move to heap.cpp. The Space
manage Allocator.

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4UTFQ

Change-Id: I03cef52d9a1c86b07323de1e19ead53fe6daaf99
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-02-25 16:03:15 +08:00
xiongluo
3bf30272e5 The limits of old space and global space were fixed.
According to the survival rate, adjust the initial old space limit adaptively.

 https://gitee.com/openharmony/ark_js_runtime/issues/I4UAY2

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-02-21 23:05:13 -10:00
xiongluo
8d2f78028a GC name is unclear and confused. class_ in object factory are redundant.
Modify gc name and delete class_ in object factory.

issue:https://gitee.com/openharmony/ark_js_runtime/issues/I4T5DR

Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-02-16 01:10:53 -10:00
yingguofeng@huawei.com
095021b081 GC performance optimization
1、Delete strategy no gc for start up
2、Adapter performance tools: runtime stat
3、Modify freeObjectKind to freeObjectSet

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

Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: I01643755057b6146d1f6b67032256e687873cd07
2022-02-15 14:24:21 +08:00
yingguofeng@huawei.com
1b6d6ef8ca Performance optimization for gc
1、Optimize GC parallel evacate strategy: evacuate to old space with FreeListAllocator.
2、Adjust strategy that whole region evacuate: Only support new fromspace to new tospace.
3、Adjust Semi space capacity growing/shrinking strategy and Adjust Semi space initialize size.

splay-benchmark:
blue zone: ark_js(2500), v8(2000)
ark-dev:  ark(1200), v8(1500)

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

Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: Ie9c6e94c47f531bf9c1ebf5bc7443dd1acb7d2ac
2022-02-15 14:23:43 +08:00
xiongluo
2483cd5a8a Optimize GC trigger
Signed-off-by: xiongluo <xiongluo@huawei.com>
2022-01-13 22:30:21 -10:00
zhangyukun
7ffcc4b20f Sync js_runtime to openharmony
Signed-off-by: zhangyukun <zhangyukun8@huawei.com>
2021-09-08 09:20:53 +08:00
wanyanglan
86cfe52253 add ark js_runtime
Signed-off-by: wanyanglan <wanyanglan1@huawei.com>
Change-Id: Iac7851492f10c0ef1303c621febb65e5fdd22e41
2021-09-05 16:05:06 +08:00