Commit Graph

488 Commits

Author SHA1 Message Date
xiongluo
a9b1a26778 invoke shared gc in destroying worker vm
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I7a8e10456bb8c5e8a43bd19768b270177b210f33
2024-04-03 01:27:46 +08:00
openharmony_ci
7db291feed
!6684 长时间GC统计
Merge pull request !6684 from jinjiawei/master
2024-04-02 03:12:37 +00:00
Artem Udovichenko
e136588892 Revert "Implement hash calculation for number"
Change-Id: I3c66e943c3be72dc33f602648297c4553004e683
Signed-off-by: Artem Udovichenko <artem.udovichenko@huawei.com>
2024-04-01 16:31:46 +08:00
xiongluo
8057a49505 bugfix of removeNative pointer
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I1057ec0cacece7bc2ddca636c7cadea127927b04
2024-03-31 16:19:56 +08:00
openharmony_ci
91ad1979ba
!6655 Manage the number of workers through memory
Merge pull request !6655 from huangfeijie/worker_num
2024-03-30 08:51:27 +00:00
jinjiawei
00a1adc716 Add long time GC event statistics
Signed-off-by: jinjiawei <jinjiawei2@huawei.com>
Change-Id: I82c47dcb6c7c8945745c6cd3f9a7fb1ebdfa422c
2024-03-30 10:17:01 +08:00
liu-zelin
89c0b1061f Fix napi_define_sendable_class
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9AUU2?from=project-issue
Signed-off-by: liu-zelin <liuzelin8@huawei.com>
Change-Id: Id3bdb9f5dd975dc0243f8a12f82c94f86043fe46
2024-03-29 22:28:56 +08:00
huangfeijie
00e8cdf80c issue: https://gitee.com/openharmony/commonlibrary_ets_utils/issues/I9BIYM
Manage the number of workers through memory
Manage the number of workers through memory

Signed-off-by: huangfeijie <huangfeijie@huawei.com>
2024-03-27 20:01:32 +08:00
openharmony_ci
2b6e29aa31
!6563 on stack replacement
Merge pull request !6563 from linxinyq/on-stack-replacement
2024-03-27 03:11:40 +00:00
openharmony_ci
13ddcaf345
!6424 Add concurrent native deleter
Merge pull request !6424 from xiongluo/concurrent_api
2024-03-26 13:05:43 +00:00
linxin
b628b761b0 on stack replacement
Signed-off-by: linxin <linxinyq@foxmail.com>
Change-Id: Ic55f7b25c6d7e7f38c2169db1065c3cd499c7bfe
2024-03-26 17:26:11 +08:00
openharmony_ci
0e983cf3b6
!6404 Implement hash calculation for numbers and objects
Merge pull request !6404 from udav/hash
2024-03-26 08:41:42 +00:00
xiongluo
f7a5a4034f Add concurrent native delter
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I133a594bd52ffa58427cbfd467fca383e3d66921
2024-03-25 22:12:47 +08:00
xiaoweidong
94791abd90 [JIT] Add jit option in napi for app enable test
1. now just add option for app, not enable default

Change-Id: I70d9edca6086b95528b20efd47ce914d7b766fd1
Signed-off-by: xiaoweidong <xiaoweidong@huawei.com>
2024-03-21 21:44:07 +08:00
Artem Udovichenko
b25ba052c4 Implement hash calculation for number
Change-Id: Ibf45fa2ad53197088a5f40a29513feedd92c5d04
Signed-off-by: Artem Udovichenko <artem.udovichenko@huawei.com>
2024-03-21 16:48:56 +08:00
xiongluo
0159923492 headump adaption shared heap
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I852de308f34dc6b13800780e520bd6e23b415c04
2024-03-17 23:52:19 +08:00
wengchangcheng
65984f4aa8 Merge remote-tracking branch 'openharmony/dev_shareheap' into dev_shareheap
Change-Id: If69df3b9dfd9910c1dab772726ebeb486080a1ed
2024-03-16 10:12:19 +08:00
lukai
a1281730c0 Adjust shared heap size
Adjust shared heap size
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I98ZB3?from=project-issue

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: Ieeb55c6dd3de2cb4e85e265d2e9e43dc6cca1339
2024-03-15 20:48:00 +08:00
wengchangcheng
c1e94f2c5b Merge remote-tracking branch 'openharmony/master' into dev_shareheap
Change-Id: I453d3948421d4327a8d54b5689b1ec21f97f5dce
2024-03-11 22:42:20 +08:00
xiongluo
fcb0c5846b Add trace for ProcessNativeDelete
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: Id129d58dd569ad5aadb6bc5d647cd66d18ae57a5
2024-03-05 22:56:06 +08:00
openharmony_ci
da73cb1c5d
!6142 [JIT] refactor jit code
Merge pull request !6142 from xiaoweidong/jit_refactor
2024-03-05 06:55:33 +00:00
lukai
a54198c372 Fix some bugs on device
https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I958VL?from=project-issue
Fix some bugs on device when enable senable patches.

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I54be68894ab5a1dacce106a0e411721b89b0e511
2024-03-02 22:08:29 +08:00
lukai
718413114a Fix some bugs at device when enable sendable patchs.
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I94Q3I?from=project-issue
1. Add threadStateTranstion when call from native to js.
2. Some mutexes don't transition their state at safepoint
3. Updating localToShareRSet encounters data race.

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I3955eafdc043a61f563ac342ac53852d6f842720
2024-02-29 16:51:36 +08:00
openharmony_ci
ad7902f13f
!6297 change aotfilemanager to ecma_vm
Merge pull request !6297 from luobinghao/aotfilemanager
2024-02-28 08:37:41 +00:00
luobinghao
9f1a4193fc aotfilemanager to ecma_vm
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I93VWQ

Signed-off-by: luobinghao <luobinghao@huawei.com>
Change-Id: Ief1039da35f816f41fe3015406c5cfa797baafbc
2024-02-28 15:22:26 +08:00
openharmony_ci
92b478ab09
!6268 Work serialize optimization
Merge pull request !6268 from dingwen/master
2024-02-27 14:07:40 +00:00
Aleksandr Emelenko
5a48b9b5e7 [Suspend/Resume] Added mutator scopes and native scopes in the corresponding methods of the VM.
Changed JS thread state just after creation (now it is in NATIVE state before execution of the bytecode)

Issue:#I91O3N

Change-Id: I410c5c4a47a05e6e3b79cc41374431d1e9188503
Signed-off-by: Emelenko Aleksandr 00537379 <emelenko.aleksandr@huawei.com>
2024-02-27 20:32:15 +08:00
dingwen
d7f1e9b522 Work serialize optimization
Description:Initialize snapshot env when vm initialize
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I930CL?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: Ib670982ac4c621973c71e19ee4777c42eb092b66
2024-02-27 19:22:08 +08:00
yaochaonan
5b91a86350 SetModuleName should consider harName(check @)
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I93TM4?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: Ib4dfa48843b2f526229c152ea428471b5e5f90e3
2024-02-27 17:30:59 +08:00
xiaoweidong
5e561c4c20 [JIT] refact jit code
1. support singleton jitcompiler, and submit compile task to jit compilertask
2. clear compiled code when deopt overflow
3. fix code align bug
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8Z9XW
Signed-off-by: xiaoweidong <xiaoweidong@huawei.com>

Change-Id: I07b43207d1be907267183f0c7b6c388dc6cdb6da
2024-02-27 09:31:28 +08:00
lukai
2c83f10480 Support multi-thread test for shared heap
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I93UGW?from=project-issue
Fix some bugs and Support multi-thread test for shared heap

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I64200f5e6d8b1b863cc63ac7068d10efa7260f88
2024-02-26 20:25:33 +08:00
wengchangcheng
f4b45a47d0 Merge remote-tracking branch 'openharmony/dev_shareheap' into dev_shareheap
Change-Id: I5914eec98625d475decc7fe57ffdfd9f1919fee8
2024-02-19 12:13:28 +08:00
h30044958
04abfc2bd5 In disable-list don't load AOT
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I920KD

Signed-off-by: h30044958 <herongpeng@huawei.com>
Change-Id: Iaf0e69b494bed170bfb17c77e7a56c54a106a057
2024-02-19 09:52:39 +08:00
lukai
d301ac8e8c Fix code conflict
1. Fix code conflict
2. Fix code review

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

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: Ib0aabf0e22eb0809122775981467ad643d2f2ca5
2024-02-19 09:17:42 +08:00
wengchangcheng
0ed9f00a08 Merge remote-tracking branch 'openharmony/master' into dev_shareheap
Change-Id: I73e06e67e44d7bd2492ba0615c2ac62b4979ef36
2024-02-19 00:14:55 +08:00
lukai
a72dd481f6 Support Share GC Part2:
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I91D19?from=project-issue
1. implement share gc marker, sweeper
2. adapt local gc to skip object in shared heap

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: Id73c9d2c52b11adfef36fff032c926aa5ed3f7cc
2024-02-08 09:47:41 +08:00
hzzhouzebin
a1308124c3 Move EcmaString & StringTable on Shared Heap
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8YVTQ
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I04d16d68f38be1679f206a782ef76b9d34142589
2024-02-07 23:13:44 +08:00
lijiamin2019
e36eb338cd share method,constpool,classliteral
Signed-off-by: lijiamin2019 <lijiamin24@huawei.com>
Change-Id: Ieb0a205bb341f09b6e5304ab66e2ce2e04725bb2
2024-02-07 21:36:41 +08:00
Gymee
cb8e0864b2 Support globalconsts shared amongst vm
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8ZQ6R
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: I377b98dc0c9c8b62a66c9c92ebe9ee84ea509656
2024-02-02 11:56:51 +08:00
openharmony_ci
b1e3c0c08c
!6042 Add aot enable and disable list
Merge pull request !6042 from herongpeng/master
2024-01-31 03:15:28 +00:00
Emelenko Aleksandr 00537379
73b9536219 Desciption
Add SuspendAll/ResumeAll functionality for registered JSThreads.
Add mutator lock support.

Issue: #I9014H

Change-Id: I6eb8944db9d2aaf9b36b7f80d3d2d5b753a8345b
Signed-off-by: Emelenko Aleksandr 00537379 <emelenko.aleksandr@huawei.com>
2024-01-30 21:49:51 +08:00
h30044958
6c4a24334f Add aot white and black list
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8ZNB8

Signed-off-by: h30044958 <herongpeng@huawei.com>
Change-Id: I11ae7010f1d291a7ac37e6c4495fa1ccbd41ada0
2024-01-30 14:12:55 +08:00
yaochaonan
9be32363c0 Support napi load file
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8YQFR?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: Ic5eeccab18572e8d1f6bd5a33bb413665a4c72d7
2024-01-29 22:44:10 +08:00
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
openharmony_ci
142ecefd0b
!5754 Support create worker use relative path
Merge pull request !5754 from yaochaonan/worker
2024-01-04 14:21:11 +00:00
yaochaonan
95630a1ae6 Support create worker ues relative path
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8SU6F?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: I3e950d11ce4ebdc80288befc1f1e3682221efacb
2024-01-04 11:10:02 +08:00
wangzhaoyong
553e1261af fix inner concurrent function call fail
Signed-off-by: wangzhaoyong <wangzhaoyong@huawei.com>
Change-Id: If9196b61eb23357cbff3edcd5fc34fd83e49e340
2024-01-03 15:58:47 +08:00
chenlincl3
9abf45d246 hms模块下沉
Signed-off-by: chenlincl3 <chenlin201@huawei.com>
Change-Id: I0796e62ab8bda18e87cbb126f90c76d34bc7dc34
2023-12-21 09:14:22 +00:00
openharmony_ci
d639d7517a
!5559 Elementskind - Part 2
Merge pull request !5559 from yaoyuan/elementsKind_interpreter_final
2023-12-19 06:35:17 +00:00
wupengyong
ee47c801a6 Reason:optimize String fromCharcode
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8HQ2J

Signed-off-by: wupengyong <wupengyong@huawei.com>
Change-Id: I5217b2acbfa9696c5a167801193bcaa93695bd4e
2023-12-18 17:18:32 +08:00