Commit Graph

16 Commits

Author SHA1 Message Date
lukai
0fb2f1694f Support sharedHeap allocation
1. Implement SharedHeap and BaseHeap.
2. Adapt SharedSpace for allocation

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: Id7dd3510f04160e356ced5eee80b06f450386a13
2024-01-25 21:56:23 +08:00
wengchangcheng
447847cb1d Merge remote-tracking branch 'origin/master' into wcc_0808
Change-Id: I1566e28d02d931b390ac5d7c3cb11c3485aed5de
2022-08-30 19:19:34 +08:00
wuzhefeng
b99c6cbfc1 Refactor Class SubBuilder
There are some similar logics in both class StubBuilder and class CircuitBuilder, so only one of them should be reserved.

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5O2G0

Tesing: CI/TDD

Signed-off-by: wuzhefeng <wuzhefeng1@huawei.com>
Change-Id: I1cca58297196dff50478caacee3fe1d2aeac1c59
2022-08-25 03:46:50 -07:00
wengchangcheng
ab13a0da91 Descriptor: support first level instruction
Details:
1. Add old Opcode defines
2. Add new inst handler of throw & wide & deprecated
3. Modify interpreter for new inst
4. Modify typeinfer for new inst
5. Modify asm interpreter for new inst
6. Modify aot circuit builder for new inst
7. Translate old inst to first level inst

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5LPNL

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: If9e0b60cafc32a662a5fb1676887939d5a2b9ebf
2022-08-24 14:12:42 +08:00
yingguofeng@huawei.com
63dd9ddde6 Description:asan crash asm interpreter.
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5K0YK?from=project-issue

Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: Id3b6022c79669cbc647dc005ad2fa34d334d9dae
2022-08-04 19:47:27 +08:00
linxiang
c2a5bbf66d Incorrect use of ACCESSORS interface, and delete the Interface
Signed-off-by: linxiang <linxiang8@huawei.com>
Change-Id: I48c1e5529d8a2a3071c1e0df09c19af041f11cc3
2022-07-21 21:19:42 +08:00
yingguofeng@huawei.com
ed85aebbad Description:Memory Leak DFX
1、Add Global and Local Leak monitor and analysis tools
2、Enable asan in x86_64、arm and aarch64

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5F2IN?from=project-issue
Change-Id: I0d201aeb21a01c412c279876112ef24d272177ce
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-07-19 10:49:19 +08:00
yingguofeng@huawei.com
1678169dc6 Description:1、0x06 is judge to forward address.
2、Mem Pool capacity cause oom in multi worker

Resolution:1、Modify INVALID_OBJECT from 0x06 to 0x05
2、Auto adapter mem pool capacity according to physics memory

Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5AKVH?from=project-issue
Change-Id: If09a2cc792d27cd14a8e7ed88af192a78bab8356
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-06-06 10:14:54 +08:00
yingguofeng@huawei.com
e561278ea8 Description: The change of hole tag cause that nullptr to be judged as a heap object
Solution: Ensure that all fileds of heap object(includes free object) are not nullptr

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

Change-Id: I062c3a7b9289de9efbb123ec62716fa554d2cb1d
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-05-28 19:18:54 +08:00
yingguofeng@huawei.com
92948f92c4 Bugfix:Fix application bug that found by monkey testing
Description:The Type of Size field in FreeObject modified to JSTaggedValue. Nonmovable And HugeObject Space OOM bugfix

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I4VE6U
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
Change-Id: If4f046d26500e6d7635a3b6e7e7b1c5817027f08
2022-02-26 18:39:47 +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
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
wengchangcheng
9a907ba3c3 optimize primitive type ACCESSORS
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
2022-01-25 18:05:12 +08:00
linxiang
f34bd82f93 fix hppgc bug
Signed-off-by: linxiang <linxiang8@huawei.com>
2022-01-07 11:00:49 +08: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