DaiHN
e5342c59e0
Rename Commonjs's Objects
...
-------------------------------
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5G29Y?from=project-issue
1. "JSCjsModule" -> "CjsModule"
"JSCjsRequire" -> "CjsRequire"
"JSCjsExports" -> "CjsExports"
2. builtin_cjs_exports.h -> builtins_cjs_exports.h
builtin_cjs_exports.cpp -> builtins_cjs_exports.cpp
builtin_cjs_require.h -> builtins_cjs_require.h
...
Signed-off-by: DaiHN <daihuina1@huawei.com >
Change-Id: I582467ef8421e03b7eb123d388d66287a79ce97b
2022-07-07 21:09:56 +08:00
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
openharmony_ci
a1380727ce
!1704 Rectify coding specification problems
...
Merge pull request !1704 from zhaozhibo/master
2022-07-05 10:07:20 +00:00
zhaozhibo
2401947648
Rectify coding specification problems from codecheck panel
...
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com >
2022-07-01 17:34:26 +08:00
dingwen
0ed1f47aa6
Fix GC memcpy_sp bug
...
Description: Fix memcpy_sp copy object fail bug
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5E0FE
Signed-off-by: dingwen <dingwen6@huawei.com >
Change-Id: I34655bc18f7f8333507cd5a00115a8e8135b3c12
2022-07-01 09:59:00 +08:00
changjiaxing
36aa7dea76
Optimizing bigint data structures
...
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5EIYF?from=project-issue
Signed-off-by: changjiaxing <changjiaxing1@huawei.com >
2022-06-28 18:53:08 +08:00
openharmony_ci
3c73881a1a
!1662 add read-only space
...
Merge pull request !1662 from lukai/master
2022-06-28 07:00:24 +00:00
lukai
2a7a4390ee
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
dingwen
2d9db6cbf7
Fix SnapshotTest on RK3568
...
Description:Snapshot Test UT running fail on RK3568
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5E9G4
Signed-off-by: dingwen <dingwen6@huawei.com >
Change-Id: Ia6004e8a0379339690b2e435dfa675664ed7650b
2022-06-27 14:20:29 +08:00
openharmony_ci
367211289e
!1640 Memory leaked in window's Testing Application
...
Merge pull request !1640 from yingguofeng/master
2022-06-22 06:49:48 +00:00
yingguofeng@huawei.com
86432994a8
It need to earse object from TaggedQueue when pop
...
Description:Memory leaked in window's Testing Application
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5DF7W?from=project-issue
Change-Id: I8d24df9152688512e8d479cf7a91bab205c409c8
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com >
2022-06-22 09:36:41 +08:00
shisan_forwork
7fe5fd4847
Add Container LightWeightMap and LightWeightSet
...
Description
To ensure the high performance of container classes, lightweight map
and lightweightset are provided in ark.
Related issues
#I566FV:Add Container LightWeightMap And LightWeightSet
Signed-off-by: shisan_forwork <chengjunxiong@huawei.com >
2022-06-21 10:02:29 +08:00
openharmony_ci
63ed734dd7
!1596 adjust pool size and related vm-memory according to physical memory
...
Merge pull request !1596 from lukai/master
2022-06-20 13:43:57 +00:00
openharmony_ci
b01688101e
!1576 Upload finally, any and allsettled codes of promise module
...
Merge pull request !1576 from 史凯/master
2022-06-20 03:09:24 +00:00
shikai-123
aa6490370f
Upload promise code
...
Upload finally/any/allSettled module of promise code
issues: https://gitee.com/openharmony/ark_js_runtime/issues/I5BFGU
Signed-off-by: shikai-123 <shikai25@huawei.com >
2022-06-20 09:24:17 +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
wengchangcheng
6468341c72
Descriptor: delete some internal unused code
...
details: delete unused code
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5COHE
Signed-off-by: wengchangcheng <wengchangcheng@huawei.com >
Change-Id: I5fe62c58353839d4aac1144fc99e2cf87f4374eb
2022-06-17 23:03:42 +08:00
openharmony_ci
a5f23218b2
!1613 gc bugfix for MergeRSetForConcurrentSweeping
...
Merge pull request !1613 from dingwen/gc_bugfix_br
2022-06-17 04:48:33 +00:00
dingwen
fe5bf496b6
gc bugfix for MergeRSetForConcurrentSweeping
...
Description:Delele the invoke of MergeRSetForConcurrentSweeping() when localspace merge
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5CR1D
Signed-off-by: dingwen <dingwen6@huawei.com >
Change-Id: I5779151d6029bb2eb7e6a4f2b864eafce910c42b
2022-06-17 12:14:18 +08:00
songzhengchao
8975897bb1
Merge remote-tracking branch 'szc/FrameHandler2'
...
Change-Id: Icd0e4b9895cf1ecba52d1a6e39566fe0c93a3ae9
2022-06-16 16:52:49 +08:00
songzhengchao
621329220d
Frame Handler refactor
...
Frame Handler directly operate frame(set
callsitesp/returnAddr/getPrevFrame,etc) which is hard to maintain.
Frames are operated by FrameIterator.
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5CKVR?from=project-issue
Change-Id: Iba1c44c1ab1afec8b5bea0111f4e986b47cc8bc4
Signed-off-by: songzhengchao <songzhengchao@huawei.com >
2022-06-16 14:41:44 +08:00
yingguofeng@huawei.com
1dd62cf68f
Description:Native Memory Leak or error
...
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5C883?from=project-issue
Change-Id: I3cdf41f9292fccb9a7e1164babc30cf77e6ac163
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com >
2022-06-15 10:59:47 +08:00
openharmony_ci
41865d03ba
!1577 Optimize the finalizationRegistry interface code according to the review
...
Merge pull request !1577 from 小马奔腾/master
2022-06-14 09:31:04 +00:00
openharmony_ci
80173b7bfb
!1549 Use weak reference instead of strong reference for SetNativePointer
...
Merge pull request !1549 from lukai/master
2022-06-14 08:46:36 +00:00
hjzhangcm
bd009036d8
fix codex warning issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5C3XK
...
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com >
2022-06-14 10:38:06 +08:00
xdmal
de8cddd1fe
Optimize the finalizationRegistry interface code according to the review
...
Optimize the finalizationRegistry interface code according to the review
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5C10P
Signed-off-by: xdmal <maxiaodong16@huawei.com >
2022-06-13 16:08:00 +08:00
Yuqiang Xian
b600b13b9e
Fix typos in comments.
...
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I590Z8
Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com >
2022-06-13 11:56:25 +08:00
Yuqiang Xian
ec35dbada7
Merge remote-tracking branch 'oh/master'
2022-06-13 11:49:01 +08:00
lukai
d098277ade
Use weak reference instead of strong reference for ArkNativeObject::SetNativePointer
...
Use weak reference instead of strong reference for SetNativePointer.
And in period of gc updating reference, if the related js object is free, "Finalize" callback will be called to release c++ memory.
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BJPG?from=project-issue
Signed-off-by: lukai <lukai25@huawei.com >
Change-Id: Ibb04cf2efa0c7e1fe719eda5e95cb62938e661e0
2022-06-12 20:58:51 +08:00
getingke
c958b9a873
Merge branch 'master' of https://gitee.com/openharmony/ark_js_runtime into aot_call_asmInterpreter
...
Signed-off-by: getingke <getingke@huawei.com >
Change-Id: I04892b95ea6e8188213f615769f0f199a511e9cb
2022-06-10 09:17:20 +08:00
openharmony_ci
671065ee6e
!1522 Optmize smart gc params
...
Merge pull request !1522 from xiongluo/reduce_params
2022-06-09 12:52:56 +00:00
openharmony_ci
a6f3b2b8a6
!1177 Require function realization
...
Merge pull request !1177 from DaiHN/require
2022-06-09 12:51:21 +00: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
openharmony_ci
56c822e058
!1544 Fix compiling issues on Mac included by continuous integration
...
Merge pull request !1544 from Pan Zhenyu/master
2022-06-09 09:48:45 +00:00
yingguofeng@huawei.com
4b0201248b
Description:The feature of "tag" in ark heap has been invalidated by a previous PR.
...
Resolution:Revert modification
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BIW5?from=project-issue
Change-Id: I827dbc48d6334c3c0ea45f1f939727bdff130e2c
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com >
2022-06-09 15:34:35 +08:00
ZhenyuPan
7927740103
fix compilation bug on MacOS
...
related issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BISH
Signed-off-by: ZhenyuPan <panzhenyu1@huawei.com >
Change-Id: I95002c034de569dad5a8dd5f6e66b0654e124826
2022-06-09 15:27:58 +08:00
getingke
62d97885f8
fixed for aot call asm interpreter
...
Change-Id: I052dfa2e8849b5a9645bac4389099266efd5047e
Signed-off-by: getingke <getingke@huawei.com >
2022-06-09 11:28:11 +08:00
Yuqiang Xian
9a35d504b2
Merge remote-tracking branch 'oh/master'
2022-06-08 11:21:28 +08:00
DaiH
eee606c334
Support CommonJS's module export function
...
------------------------------------------
1. Support CommonJS's module export function
2. Related test cases
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5590V
Signed-off-by: DaiH <daihuina1@huawei.com >
Change-Id: I18968f6a6b971fbe833d91ef98813964cc8292c9
2022-06-08 10:59:06 +08:00
Yuqiang Xian
00934aa1d6
Rename RegionSpaceType to RegionSpaceFlag to better distinguish the name from that in Space class.
...
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I590Z8
Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com >
2022-06-08 09:32:50 +08:00
Yuqiang Xian
9398651bdf
Split region flag type declaration into separated Space type and GC flags.
...
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I590Z8
Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com >
2022-06-07 17:10:37 +08:00
openharmony_ci
9d0b4b7e43
!1490 Invalid Object And mem map oom
...
Merge pull request !1490 from yingguofeng/master
2022-06-07 08:21:07 +00:00
openharmony_ci
11895598b5
!1435 Add smart gc interface
...
Merge pull request !1435 from xiongluo/smart_gc
2022-06-07 07:58:35 +00: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
openharmony_ci
225df7058a
!1506 add statsUpdate and lastObjectId event
...
Merge pull request !1506 from Riachel/master
2022-06-07 04:26:00 +00:00
Riachel
557c07bb07
Descriptor: support heapprofiler domain
...
details:
1. add statsUpdate event
2. add lastObjectId event
issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5AUJA
Signed-off-by: Riachel <caolili14@huawei.com >
2022-06-07 11:29:50 +08:00
Yuqiang Xian
34c428f16a
Re-organize the region flags.
...
1) Separate the space type flags from the GC related flags;
2) the space type flags should be exclusive with each other, hence we shouldn't make them denoted
by specific dedicated bits respectively, because in that way we can't avoid multiple bits being set,
which is not what we expect.
3) the GC related flags are kept using dedicated flag bit for now. Going forward we should continuouslly
improve this, e.g., to check if some of these flags are also exclusive with each other, and to better
separate them from the space type flags with separately declared types, etc.
4) The judgement of whether an object is containted in the heap is _somehow_ improved, but as mentioned
in the code comments, it's still not safe and accurate enough, be careful when using it.
Issue: https://gitee.com/openharmony/ark_js_runtime/issues/I590Z8
Signed-off-by: Yuqiang Xian <xianyuqiang@huawei.com >
2022-06-06 17:23:27 +08:00
openharmony_ci
d94412392b
!1493 fix codex warning
...
Merge pull request !1493 from hjzhangcm/master
2022-06-06 04:15:17 +00:00
hjzhangcm
6741c67039
describe:fix codex warning
...
issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5AM6L
Signed-off-by: hjzhangcm <zhanghaijun20@huawei.com >
2022-06-06 11:27:19 +08:00
yingguofeng@huawei.com
c0d7f5d528
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