Commit Graph

51 Commits

Author SHA1 Message Date
openharmony_ci
db09ae67f6
!6425 Huge object memap bigaddr and delete sensitive status overshoot size
Merge pull request !6425 from dingwen/master
2024-04-01 15:20:31 +00:00
dingwen
ffdb6bfe09 Huge object memap bigaddr
Description:Huge object memap bigaddr
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9787J?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I8b77791411e534281580ce5191d3716b50e7359c
2024-03-31 10:20:26 +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
hwx1163501
ad3cecab6a 修改rand用于安全用途的伪随机数
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I916MT
2024-02-05 15:15:02 +08:00
dingwen
df5e6d34fa Modify GC CAS and add space type tag
Description:Modify GC CAS and add space type tag
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8ZGHT?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I01cb0e146e7362bf66e574a7bd2123d63a52932c
2024-01-28 19:51:30 +08:00
dingwen
7165aecb49 Memmap big addr to avoid jsheap is written by others
Description:Memmap big addr to avoid jsheap is written by others
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8WWZ8?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I79885afefcaabdf7b7a6e961337217911e36dd2e
2024-01-17 20:10:09 +08:00
liushitong
8df093dc46 Modify code warning
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8UTG3

Signed-off-by: liushitong <liushitong@huawei.com>
2024-01-09 19:54:37 +08:00
liushitong
8b5794bc50 Modify code warning
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8UTG3

Signed-off-by: liushitong <liushitong@huawei.com>
2024-01-09 16:55:08 +08:00
xiongluo
63ce2ed253 add ArkTS tag with tid and opt heapdump
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: Icb14d88e6c5c4183e905a145ec9c97ecd4321b37
2023-12-16 21:37:49 +08:00
huangzhenghua
4501550121 optimize container iterator erase
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8KJDZ

Signed-off-by: huangzhenghua <huangzhenghua3@huawei.com>
Change-Id: Ie16fe03077c62116ef7a2e08b63354948fb8d666
2023-11-29 20:44:17 +08:00
dingwen
066123910b Fix huge object mem pool empty bug
Description:Adjust huge object mem pool larger than 1024 MB
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8B2TR

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: Ie2c30281adb1809fcf33cfb1f42df65f51b56e7a
2023-10-27 10:16:29 +08:00
hwx1163501
1812925c9c modify code clarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8AGOX
2023-10-24 16:39:09 +08:00
xiongluo
c7ab7dddd8 change mutex based on pthread_mutex
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I232c1378a20dcef26e61cee76b7b40cccc5b5e9f
2023-09-27 15:11:28 +08:00
hwx1163501
5eb41e6e43 Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I849Y4
2023-09-25 20:48:48 +08:00
hwx1163501
0cfe428522 Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I83M46
2023-09-25 14:43:30 +08:00
xiongluo
6f04fcd8cb cache regios to accelerate alloc
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I0f59b2586f0608245b849299644e3f935a79f337
2023-09-18 21:39:31 +08:00
lukai
330cf2680f Add memory tag for memory pool
Add MemPoolCached for unused but has mapped memory

Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I70L4J?from=project-issue
Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I3822120f71ef1eaa19a7d6dca0a91e1f3121607a
2023-05-06 02:13:40 +00:00
zhangyukun8
30e4699875 Modify the tag of machine code space
1. add "ArkTs code" tag for machine code
2. deconstruct mutex
3. Fix ark_aot_compiler of device-side
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I6EPUN?from=project-issue
Signed-off-by: zhangyukun8 <zhangyukun8@huawei.com>
Change-Id: I48ec11c1a809d60283dec5edd98c528642dacb68
2023-02-14 15:26:45 +08:00
dingwen
6afb4550f0 Fix MemMapAllocator create multi instances when .h file referenced by different so
Description:The static GetInstance() defined in .h file, if the .h referenced by multi so, this may create multi MemMapAllocator instances in the same process
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I69GXJ?from=project-issue

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: I17bfcef899acaf4f838ee58e4ba74155ad321a66
2023-01-09 10:18:51 +08:00
wengchangcheng
2cdbecaeb9 Descriptor: Encapsulate some interface in PandaFile
Details: Encapsulate GetStringData and use JSPandafile instead of File

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

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: Ied940326ea2913337db013e1ab1bf57b6f56162b
2023-01-03 15:16:51 +08:00
g00416891
fa5b47c71a Explicit only works on single-argument constructor
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: Ia9bfc1e905962127d2afea6adb21704d4f0cd6d0
2023-01-03 11:06:16 +08:00
Gymee
f6e412cecb fix codestyle
Issue: #I65XYU
Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: Ie4de168df74fb04fd11410d69a8b2b7164bb3c42
2022-12-13 11:57:48 +08:00
jing_han
1c5cfede22 Modifying Code Alarms
Signed-off-by: jing_han <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I65AFF
2022-12-08 15:38:28 +08:00
maojunwei
09d2070b16 Fix for freelist pool memory fragment
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I62K33?from=project-issue

Signed-off-by: maojunwei <maojunwei1@huawei.com>
Change-Id: Ib64a16eb988c7c222952f3ca52d14bffb24a60ed
2022-12-02 15:07:11 +08:00
openharmony_ci
7c3a5d4394
!3083 Add basic platform for adapting crossing os
Merge pull request !3083 from yingguofeng/platform
2022-11-28 13:05:33 +00:00
yingguofeng@huawei.com
5e35bba222 refactor(platform): Add basic platform for adapting crossing os
Include interface of file、map、time、os.

link #I60UJM

Change-Id: I27e05f203a1c21799e055c33a25a0f82b68ab092
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-11-28 15:07:41 +08:00
zhaozhibo
0837d2ab3e fix code warnings
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
2022-11-28 10:00:41 +08:00
gongyuhang
430038e30b Ark engine adapt to ios platform.
Issue: https://e.gitee.com/open_harmony/dashboard?issue=I5QYMN
Test: N/A
Signed-off-by: gongyuhang <gongyuhang7@huawei.com>
2022-10-13 23:07:50 +08:00
yuan-yao14
ae217601d5 Optimize Map Insert
Description
    Replace map.insert with map.emplace which will save the cost of copies.

Issues:
    https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5SO2A

Signed-off-by: yuan-yao14 <yuanyao14@huawei.com>
Change-Id: I2a87cd49e24ceaf6e5ef6d0fc7d2a364f52b1f5c
2022-09-23 09:40:20 +08:00
wuzhangda
a5c66959e2 Rebuild OOM Bugfix
Use existing functions for space allocation

Issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5M9TI

Signed-off-by: wuzhangda <wuzhangda@huawei.com>
Change-Id: I593cc72051e9b421fd254398dc7428719f5a89f5
2022-08-16 20:50:40 +08:00
Riachel
96adb30222 Descriptor: delete native_stack.h, trace.h and mem.h
details: delete native_stack.h, trace.h and mem.h
issue:https://gitee.com/openharmony/arkcompiler_runtime_core/issues/I5IS38

Signed-off-by: Riachel <caolili14@huawei.com>
2022-07-28 19:15:13 +08:00
linxiang
4a082f4f0b use full-path for all headers.
Signed-off-by: linxiang <linxiang8@huawei.com>
Change-Id: I20b5cf6245799839362b1999d3d9fb6955bf609a
2022-07-25 20:32:55 +08:00
openharmony_ci
57d689d7e4
!1720 Memory Leak DFX Tool
Merge pull request !1720 from yingguofeng/master
2022-07-21 03:07:45 +00: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
lukai
9ff67e2925 workerxts bugfix
1. jspandfile used after free
2. icupath multi-thread problems
3. mmappool used after free
4. condition variable has waiters when delete it
issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5FVPB?from=project-issue

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: Iddb7fb85bce6b87e568591e3967509daa943dbb2
2022-07-19 10:23:34 +08:00
g00416891
25697095cd Fix CodeCheck
Signed-off-by: g00416891 <guobingbing3@huawei.com>
Change-Id: I02148bbd203868f0bda0f8de899ad625651824d8
2022-07-11 09:50:28 +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
openharmony_ci
a1474669ab
!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
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
wengchangcheng
cc184ba66c 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
yingguofeng@huawei.com
4d18ed01b0 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
yingguofeng@huawei.com
535f62eee9 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
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
dingwen
74f2759b79 Fix munmap bug on windows platform
Description:Only munmap once when MemMapAllocator Finalize
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I57FVJ

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: Idd9d689a1332b2ab60626cc0c5445f2ec3975268
2022-05-16 16:16:10 +08:00
yingguofeng@huawei.com
775da0f837 mem pool size maybe overflow in small memory device
reduce pool size

issue: https://gitee.com/openharmony/ark_js_runtime/issues/I57B9N?from=project-issue
Change-Id: Iebc6f6252425b4a2954828b9c102d4ec9c01d8eb
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-05-13 16:48:37 +08:00
dingwen
7f590e3cb7 Fix run unit tests fail on rk3568
Description:Everytime when vm destroy, munmap memPool resource
ISSUE:https://gitee.com/openharmony/ark_js_runtime/issues/I56MQ3
Signed-off-by: dingwen <dingwen6@huawei.com>

Change-Id: Ie28c6c2e59b75e896144357008b8561e6ae595e9
2022-05-10 17:23:29 +08:00
ZhenyuPan
ba7849273d for ark_js_vm on mac
related issue: https://gitee.com/openharmony/ark_js_runtime/issues/I55GYU
Change-Id: I3faad1171ed2ef08660c62f0ff6c88b34c5cbcfa
Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com>
2022-05-09 09:06:58 +08:00
xliu
059152af76 Fix UT test and json parser
Description
  1. Fix UT test
  2. Fix mem_map_allocator
  3. Fix json parser
Issue:
  #I55S8H:Fix UT test and json parser

Signed-off-by: xliu <liuxin259@huawei.com>
Change-Id: I1e5107a1f119eb1422a40f2275d961b366dda46b
2022-05-05 11:36:33 +08:00
yingguofeng@huawei.com
f92fd56d45 Bugfix:Launcher application crash caused by large object updating null pointer
Add judgment null pointer

https: //gitee.com/openharmony/ark_js_runtime/issues/I54MFV?from=project-issue
Change-Id: If05f7dc1372d3d56acd59811cef1e51fb507bf94
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-04-26 09:09:59 +08:00
yingguofeng@huawei.com
5037c8aac6 Delete useless code dependencies
To reduce 'libark_ jsruntime.so' ROM size, delete useless code dependencies.

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

Profit: libark_jsruntime.so size reduce from 3455(kb) to 2001(kb)

Change-Id: Ie7430fca6f539c9baff1f4aae7942da6fc9ef135
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2022-04-24 18:02:32 +08:00