wengchangcheng
cd90e396a7
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
7b695c2ae5
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
7d12ac2836
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
0a218f7bb7
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
1a5e085031
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
272cf6664d
!1155 Refactor the GC related components - Part 4
...
Merge pull request !1155 from klooer/master
2022-04-30 09:45:48 +00:00
xiongluo
e9d8c16a23
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
5dffd792d6
Merge remote-tracking branch 'oh/master'
2022-04-28 11:24:41 +08:00
Yuqiang Xian
d9068ae3e0
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
d8b0be85b3
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
57c0a4f055
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
5925e8ff44
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
d5d9acb51d
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
12e27e6863
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
70147c1220
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
82b0916295
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
3ace067f87
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
ef9b13734d
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
510d33a07b
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