Commit Graph

639 Commits

Author SHA1 Message Date
openharmony_ci
86dfd767ac
!7274 [Bug]: startcpuprofiler增加防重入机制
Merge pull request !7274 from wanghuan2022/master
2024-05-13 03:32:12 +00:00
wanghuan2022
a302625833 [Bug]: startcpuprofiler增加防重入机制
desc: startcpuprofiler增加防重入机制

solu: start接口增加返回值 && 日志重构 && 释放对象时机调整

issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9MVQJ

Signed-off-by: wanghuan2022 <wanghuan80@huawei.com>
Change-Id: If36c4f1dae0fc775254edcc51425ace2af843a45
2024-05-12 18:52:55 +08:00
lukai
cad894c429 Some bugfix about appfreeze
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9OIMT?from=project-issue
fix dead lock

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: Ib69d83eee5bd7cb0528f0bab16815fc75a60a286
2024-05-11 18:10:30 +08:00
linxin
aa6fba5d96 New option compiler-jit-call-threshold: Trigger jit when the execution count of the js function reaches the specified number of times.
Signed-off-by: linxin <linxinyq@foxmail.com>
Change-Id: Iac8091b6fb9994d932fa008e41e83168c3d3b389
2024-05-10 14:05:35 +08:00
openharmony_ci
bc3600b387
!7230 Fixed worker creation failure under new ohmurl rules
Merge pull request !7230 from chenlincl3/work
2024-05-09 07:14:50 +00:00
chenlincl3
46b06ff474 Fixed worker creation failure under new ohmurl rules
Signed-off-by: chenlincl3 <chenlin201@huawei.com>
Change-Id: Ia2c8d54d4b24048553696c70e80c9787880972ed
2024-05-09 10:39:16 +08:00
chentianyu
7f3b7aac04 Fix some jsthread state transition
Signed-off-by: chentianyu <chentianyu31@huawei.com>
Change-Id: I9b4d64dab84b3c727aa442beb4f428f1a747a8b0
2024-05-07 16:19:29 +08:00
openharmony_ci
6342072cde
!7248 NULL pointer dereference during deserialization
Merge pull request !7248 from lukai/deserilization
2024-05-06 06:21:39 +00:00
lukai
e335cb7363 NULL pointer dereference during deserializing
Allocation failure if the heap is out of memory. Check and throw oom if
allocation failure.
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9MDR3?from=project-issue

Signed-off-by: lukai <lukai25@huawei.com>
Change-Id: I78d05af7b594eed0383ddb4366892cb89a3dca3c
2024-05-06 11:10:16 +08:00
openharmony_ci
4a7ce9bb87
!7235 修复模拟器启动失败
Merge pull request !7235 from 杨阳/fix_emu
2024-05-05 04:21:43 +00:00
yang-19970325
5f2c4f38fa Fix emulator start fail
Issue:#I9LND9

Signed-off-by: yang-19970325 <yangyang585@huawei.com>
Change-Id: Iac468a084ec471d6fcd90e883cc50956892f593c
2024-05-05 11:11:34 +08:00
wangzhaoyong
ae141ea63e fix check task concurrent function
Signed-off-by: wangzhaoyong <wangzhaoyong@huawei.com>
Change-Id: I36229c5a478dd6e662886ca41c651d992c8edd70
2024-05-04 21:48:23 +08:00
openharmony_ci
c803adb578
!7221 Modify napi_load_module exception throwing type
Merge pull request !7221 from chenlincl3/napi_crash
2024-05-03 09:09:22 +00:00
chenlincl3
c20cea1a11 Modify napi_load_module exception throwing type
Signed-off-by: chenlincl3 <chenlin201@huawei.com>
Change-Id: I7a04bd0778d2097a3ebe821b4cbc512427ead7ce
2024-05-03 16:00:45 +08:00
openharmony_ci
0f791e118f
!7190 Added the aa start mode to set the multithread security check switch
Merge pull request !7190 from 邵益江/master
2024-05-01 08:16:59 +00:00
shaoyijiang
d61b8b7dfc Added the aa start mode to set the multithread security check switch
Signed-off-by: shaoyijiang <shaoyijiang@huawei.com>
Change-Id: I1b276aa2c0d8eb194dd9b9bab4fa33fc3d979432
2024-04-30 09:53:58 +08:00
yangxiaoshuai2022
e9d36c92d0 Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into microjob_trace
Signed-off-by: yangxiaoshuai2022 <yangxiaoshuai@huawei.com>
2024-04-26 10:46:32 +00:00
yangxiaoshuai2022
226cbecfa9 Modify trace timing of microJob and add macro to compile independently
Signed-off-by: yangxiaoshuai2022 <yangxiaoshuai@huawei.com>
2024-04-26 18:45:12 +08:00
openharmony_ci
81f3a44cbd
!7074 jit compile mode refactor
Merge pull request !7074 from zoumujia/refactor
2024-04-24 12:54:32 +00:00
openharmony_ci
8c410fbdf7
!7061 enable cppcrash escape by sigaction
Merge pull request !7061 from wangyue/cppCrashEscape
2024-04-24 06:40:55 +00:00
openharmony_ci
66146b68a0
!7077 Remove set jit enable for appspawn
Merge pull request !7077 from xiaoweidong/fix_jit_enable
2024-04-23 09:27:41 +00:00
wangyue
95b6b1ac86 enable cppcrash by sigaction
Signed-off-by: wangyue <guowanlong@huawei.com>
Change-Id: Ie7c44a378096fc059787c6e210f049bd2a0cc2d5
2024-04-23 11:33:29 +04:00
xiaoweidong
be2b56c7f5 [JIT] remove set jit enable for appspawn
Change-Id: I60139be094068578c3cb87abef9ac8bb93535a62
Signed-off-by: xiaoweidong <xiaoweidong@huawei.com>
2024-04-23 13:06:24 +08:00
zoumujia
7b717de879 jit compile mode refactor
Signed-off-by: zoumujia <zoumujia0920@163.com>
2024-04-23 10:54:58 +08:00
xiaoweidong
5d9d5b7385 [JIT] ResetPGOProfiler when enable jit if never init profile
Change-Id: I3a233a3933a5ea78da4b9162db9bd271d73646b2
Signed-off-by: xiaoweidong <xiaoweidong@huawei.com>
2024-04-22 18:14:06 +08:00
wangyue
664759808a enable jit js crash escape
Signed-off-by: wangyue <guowanlong@huawei.com>
Change-Id: Ic0f0096843a47212ae116e2cdbf7b60ff54aba9b
2024-04-22 08:36:26 +04:00
xiaoweidong
420b5ec786 [JIT] Set default options for concurrent jit compile
Change-Id: I64c028590421704e408affab581df52a71ab9579
Signed-off-by: xiaoweidong <xiaoweidong@huawei.com>
2024-04-21 23:30:13 +08:00
openharmony_ci
4d73659898
!6794 [BaselineJIT] support BaselineJIT
Merge pull request !6794 from wzlgit/baseline_commit_blue
2024-04-21 12:06:06 +00:00
w00443755
e68673a13f enable baseline compiler
add baseline builtins

Change-Id: Ib8d7c392c62e21eab19b17e45c0fafb499cbbed9

support running baseline compiler by option --compiler-force-baseline-compile-main=true

Change-Id: I7c7337faf9fad39ccffb2de28d46403e2f6cb22b

baseline jit part3

Change-Id: I36e8dd6a6fa6fffb738029a8620bbcd01df1e017

baseline part4

Change-Id: Ib45bcf7255a85aa48f864a6021adf819927e6a13

baseline part5 move baseline into compiler folder

Change-Id: Ia8781c95ae00c4f300e7267a6da0078b5d04e4c8

!185 support BaselinePrologue
* support BaselinePrologue part3
* support BaselinePrologue part2
* support BaselinePrologue

!187 [BaselineJit] support load baseline builtins
* [BaselineJit]support load baseline builtins

!186[BaselineJIT] workaround for baselinejit support install code
* install code part3
* install code part2
* baseline jit support intall code

!188 [BaselineJit] support CallBuiltin
* [BaselineJit] baseline support  CallBuiltin

!189 [BaselineJIT]implement StackOffset class
* [BaselineJIT]implement StackOffset class

!190 [BaselineJIT]refactor BaselineAssembler and MacroAssembler
* [BaselineJIT]refactor BaselineAssembler and MacroAssembler

!191 [BaselineJIT] refactor class BaselineCompiler
* [BaselineJIT] refactor class BaselineCompiler

!192 [BaselineJIT] callbuiltin support new parameter type
new parameter type: int32_t,SpecialParameter,VirtualRegister

!193 [BaselineJIT]modify BaselineLoadObjByName function
* [BaselineJIT]modify BaselineLoadObjByName function

!194 [BaselineJIT] support new builtins
* [BaselineJIT] add  BaselineTryLdGLobalByNameImm8ID16,  BaselineStToGlobalRecordImm16ID16, BaselineLdaStrID16

!196 [BaselineJIT]bugfix for BaselinePrologue, align the rsp
* [BaselineJIT]bugfix for BaselinePrologue, align the rsp

!197 [BaselineJIT]bugfix for StackOffsetDescriptor
* [BaselineJIT]bugfix for StackOffsetDescriptor

!198 [BaselineJIT]workaround for helloworld testcase, helloworld can run successfully
* workaround for helloworld testcase, helloworld can run successfully

!200 [BaselineJIT]adapt profile collection
* [BaselineJIT]adapt profile collection

!201 [BaselineJIT]refactor baseline jit
* [BaselineJIT]refactor baseline jit

!203 [BaselineJIT]support trigger BaselineJITCompile and call baselinecode async
* [BaselineJIT]support trigger BaselineJITCompile and call baselinecode async

!202 [BaselineJIT]enable update hotness
* [BaselineJIT]enable update hotness

!205 [BaselineJIT]adapt JSCallDispatch interface
* [BaselineJIT]adapt JSCallDispatch interface

Change-Id: I4efce4346f985c7e074d7fc4bbfe3b081272e950

!195 [Baseline JIT] bytecode to builtin funs
* !206 enable bytecode builtins and call CHECK_PENDING_EXCEPTION
* [Baseline JIT] builtins:StobjbynameImm9Id16V8,StobjbynameImm16Id16V8,S…
* [Baseline JIT] builtins:CopyrestargsImm8,LdlexvarImm4Imm4,StlexvarImm4…
* [Baseline JIT] builtins: LdsuperbyvalueImm8V8,LdsuperbyvalueImm16V8,St…
* [Baseline JIT] builtins: DelobjpropV8,AsyncfunctionawaituncaughtV8,Cop…
* !204 enable bytecode builtins
* [Baseline JIT] builtins: DefineclasswithbufferImm8Id16Id16Imm16V8,Defi…
*  [Baseline JIT] builtins: LdthisbynameImm8Id16,Definegettersetterbyval…
* [Baseline JIT] builtins: Callarg0Imm8,SupercallspreadImm8V8,ApplyImm8V…
* !199 enable bytecode builtin func
* [Baseline JIT] builtins: StrictnoteqImm8V8,StricteqImm8V8,Istrue,Isfal…
* [Baseline JIT] builtins: NegImm8,NotImm8,IncImm8,DecImm8,IsinImm8V8,In…
* [Baseline JIT] builtins: And2Imm8V8,Or2Imm8V8,Xor2Imm8V8,ExpImm8V8,Typ…
* [Baseline JIT] builtins:LessImm8V8,LesseqImm8V8,GreaterImm8V8,Greatere…
* [Baseline JIT] builtins:Add2Imm8V8,SUB2_IMM8_V8,MUL2_IMM8_V8,DIV2_IMM8…
* [Baseline JIT] builtins:CreateobjectwithbufferImm8Id16,Createobjectwit…
* [Baseline JIT]builtins:Createemptyobject,CreateemptyarrayImm8,Createem…
* [Baseline JIT] builtins:GetiteratorImm16,Asyncfunctionenter,Createasyn…
* [Baseline JIT] builtins:ldsymbol,ldglobal,Poplexenv,Getunmappedargs,Ge…
* [BaselineJIT] builtins: add base class

!209 handle opcode in baseline compiler
* handle opcode in baseline compiler

!210 [baseline jit]: add baseline stub call signature target kind info
* [baseline jit]: add baseline stub call signature target kind info

!212 [BaselineJIT]baseline builtin bugfix
* [BaselineJIT]baseline builtin bugfix

!207 [BaselineJIT]support BaselineBuiltinFrame
* [BaselineJIT]support BaselineBuiltinFrame

!214 [BaselineJIT]baseline builtin bugfix of using JSCallDispatch
* [BaselineJIT]baseline builtin bugfix JSCallDispatch

Change-Id: Id67b991df5dee753a38c284234d15b02f0d8a091

!215 [BaselineJIT]bugfix for StackOffsetDescriptor
* [BaselineJIT]bugfix for StackOffsetDescriptor

!216 [baseline jit]update bytecode builtins
* [baseline jit]update bytecode builtins

!213 [BaselineJIT]support BaselineReturn and BaselineReturnundefined
* [BaselineJIT]support BaselineReturn and BaselineReturnundefined

!218 [BaselineJIT]baseline builtin
* [BaselineJIT]baseline builtin:ldfunction,ldthis,asyncgeneratorresolvev…

!217 parse baseline-jit bytecode v1.0
* parse bytecode in baseline-jit

!220 [BaselineJIT]baseline refactor ParameterIndex
* [BaselineJIT]baseline refactor ParameterIndex

!223 [BaselineJIT]get function and method from stack, avoiding method is used after call
* [BaselineJIT]get function and method from stack, avoiding method is us…

!224 [BaselineJIT]bugfix for compiling x64.release
* [BaselineJIT]bugfix for compiling x64.release

!226 [BaselineJIT] adapt gc for BASELINE_BUILTIN_FRAME type
* [BaselineJIT]adapt gc for BASELINE_BUILTIN_FRAME type

!222 [BaselineJIT] parse baseline builtin args
* [BaselineJIT] parse baseline builtin args:part 2
* [BaselineJIT] parse baseline builtin args

!229 parse baseline-jit bytecode v2.0
* [BaselineJIT] parse bytecode v2.0

!230 [BaselineJIT] remove including undefined_function file
* [BaselineJIT] remove including undefined_function file

!228 handle byte opcode of jmp v2
* [baseline jit]handle opcode of jmp V2

[BaselineJIT]rebase bugfix

Change-Id: I078298849139317dfa89fb139979c1b7d938b344

!231 [BaselineJIT] fix bugs about reading bytecode
* [BaselineJIT] fix bugs about read bytecode

!232 [BaselineJIT] fix bug about processing arguments in stub
* [BaselineJIT] fix bug about processing argument in baseline-stubs

!233 handle int64_t type in CallBuiltin
* [baseline jit]handle int64_t type in CallBuiltin

!234 [BaselineJIT] fix bug for StToGlobalRecordImm16ID16
* [BaselineJIT] fix bug for StToGlobalRecordImm16ID16

!235 [BaselineJIT] fix bugs about args type
* [BaselineJIT] fix type of args that passing to builtins

!236 [BaselineJIT] do not pass constpool to builtins
* [BaselineJIT] do not passing constpool to builtin

Change-Id: I8c46d70527a3fedd841d28ac1908a02d4a66edeb

!237 [baselineJit]Bugfix for sp used in JSCallDispatch and incorretc type
* [baselineJit]Bugfix for sp used in JSCallDispatch and incorretc type

Change-Id: I3f42ecd06266a20b2b145cfe98bcbd97a2848bab

[BaselineJIT] dump_test bugfix

Change-Id: I97d21960ca98cd1a6fc9b1e81b647ff9d8d5d0c2

[BaselineJIT]codecheck fix

Change-Id: I93eb02e45b70f4a5bfee84fec0c8e2cdc765d348

code check bugfix part2

Change-Id: I8680dd2c098193705709691fa78e8e6f3ad8cd6c

bugfix for review

Change-Id: I49b28e109530b9f8b403ba22ba39948e02834021

[BaselineJIT]change file folder

Change-Id: I1f46110a804f17270badcff7cdeb2058ca164161

[BaselineJIT]bugfix for review part2

Change-Id: I190406652697f9b17ac6c84dd706262046dbb5f7

!238 [BaselineJIT] fix more than 6 args builtins
*  [BaselineJIT] fix more than 6 args builtins

!239 [BaselineJIT] fix bug in parsing CALLTHISRANGE_IMM8_IMM8_V8
* [BaselineJIT] fix bug in parsing CALLTHISRANGE_IMM8_IMM8_V8

!240 [BaselineJIT] fix bug and add NewobjrangeImm8Imm8V8,NewobjrangeImm16Imm8V8
* [BaselineJIT] fix bug and add NewobjrangeImm8Imm8V8,NewobjrangeImm16Imm8V8

!241 [BaselineJIT] fix bug of ldnan, ldinfinity
* [BaselineJIT] fix bug of ldnan, ldinfinity

!242 [BaselineJIT] return JSCallDispatch result
* [BaselineJIT] return result of JSCallDispatch for baselinecode

!245 [BaselineJIT] fix builtins return value
* [BaselineJIT] fix builtins return value

!244 [BaselineJIT] save result to acc
* [BaselineJIT] save result to acc

!243 Bugfix for StlexvarImm4Imm4
* [baselineJit]Bugfix for StlexvarImm4Imm4

!246 [BaselineJIT] remove ldfunction
* [BaselineJIT] remove ldfunction

!248 [BaselineJIT] save result of DEFINECLASSWITHBUFFER_IMM8_ID16_ID16_IMM16_V8
* [BaselineJIT] fix return

!247 [baselineJit]Bugfix for Stlexvar and Ldlexvar
* [baselineJit]Bugfix for Stlexvar and Ldlexvar

!249 [BaselineJIT] Revert "!242[BaselineJIT] return JSCallDispatch result"
* Revert "!242 [BaselineJIT] return JSCallDispatch result"

!251 Bugfix for BaselineCreateobjectwithexcludedkeysImm8V8V8
* [baselineJit]Bugfix for BaselineCreateobjectwithexcludedkeysImm8V8V8

!252 [baselineJit]Bugfix for notException branch
* [baselineJit]Bugfix for notException branch

!250 [BaselineJIT] save result to acc in JSCallDispatch for baselinemethodcode
* [BaselineJIT] save result of JSCallDispatch to acc for baselinecode

!254 [BaselineJIT] fix type bug
* [BaselineJIT] fix type bug

!255 [BaselineJIT] fix bug of LDAI_IMM32
* [BaselineJIT] fix bug of LDAI_IMM32

!253 Bugfix for Poplexenv
* [baselineJit]Bugfix for Poplexenv

!256 [BaselineJIT] fix pc & refractor jscalldispatch for baseline-jit
* [BaselineJIT] fix pc of baseline-jit & refactor jscalldispatch for baseline-jit

!257 [BaselineJIT] replace indirectly jscalldispatch with jscalldispatchforbaseline
* [BaselineJIT] replace indirectly jscalldispatch with jscalldispatchforbaseline

!258 [BaselineJIT] fix using shl2 builtin bug
* [BaselineJIT] fix using shl2 builtin bug

!259 Bugfix and enable BaselineIstrue and BaselineIsFalse
* [baselineJit]Bugfix and enable BaselineIstrue and BaselineIsFalse

!260 [BaselineJIT]  fix bug about passing FUNC parameter
* [BaselineJIT] fix bug about passing FUNC parameter

!261 [BaselineJIT] support passing parameters by stack and fix offset param bug
* [BaselineJIT] support passing parameters by stack and fix offset param bug

!263 [BaselineJIT] fix parameters bug of LdobjbyvalueImm16V8 & StobjbyvalueImm16V8V8
* [BaselineJIT] fix parameters bug of LdobjbyvalueImm16V8 & StobjbyvalueImm16V8V8

!262 Bugfix for jump offset
* [baselineJit]Bugfix for jump offset

!264 [BaselineJIT] fix intermediates v8 parameters bug
* [BaselineJIT] fix intermediates v8 parameters bug

Change-Id: I8bf4fdf7621770a1976925423de23693570365c9

!267 [BaselineJIT] fix bug of BaselineInstanceofImm8V8
* [BaselineJIT] fix bug of BaselineInstanceofImm8V8

!269 [BaselineJIT] support NEWOBJRANGE_IMM16_IMM8_V8 & fix calling DefineMethod runtimeStub
* [BaselineJIT] support NEWOBJRANGE_IMM16_IMM8_V8 & fix calling DefineMe…

!268 [BaselineJIT]support update hotness
* [BaselineJIT]enable update hotness part2
* [BaselineJIT]support update hotness

Change-Id: I24b02a9e015df7263b1e9d7210377add0bfc558c

CI bugfix

Change-Id: I2d5aef07a1f14b3c64585790cff99d64be0d6396
Signed-off-by: w00443755 <wangzhilei2@huawei.com>
2024-04-21 17:58:55 +08:00
yangxiaoshuai2022
633e07eed0 Merge branch 'master' of gitee.com:openharmony/arkcompiler_ets_runtime into microjob
Signed-off-by: yangxiaoshuai2022 <yangxiaoshuai@huawei.com>
2024-04-21 09:47:28 +00:00
yangxiaoshuai2022
c52783ad3c 微任务新增jobId
Signed-off-by: yangxiaoshuai2022 <yangxiaoshuai@huawei.com>
2024-04-21 15:32:18 +08:00
wengchangcheng
38db6db8ad modify napi performance
1. add env in JSNativePointer deleter
2. delete new NativeObjectInfo
3. delete NapiNativeCallbackInfo, use ark stackinfo instead

https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9IDMS

Signed-off-by: wengchangcheng <wengchangcheng@huawei.com>
Change-Id: I1acf0e9f26096319ef74ef20e108ac63c9c2c21c
2024-04-21 14:47:41 +08:00
openharmony_ci
9363d1718e
!6907 Remove TSManager and TSTypes
Merge pull request !6907 from huoqingyi/remove_tsmanager
2024-04-20 10:46:18 +00:00
wangzhaoyong
a800e9756a fix callNapi cause taskpool function fail
Signed-off-by: wangzhaoyong <wangzhaoyong@huawei.com>
Change-Id: Id044264d52364bd2bde7b89e4dd40caf950dd094
2024-04-18 23:55:09 +08:00
huoqingyi
f02aef4974 Remove TSManager and TSTypes
With the enhancement of the ability of PGO types, TSManager and TSTypes are no longer needed in the AOT compilation phase. So let's remove them.

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

Tests:
ark_js_host_unittest, AOT pog test262  AOT workload

Signed-off-by: huoqingyi <huoqingyi@huawei.com>
Change-Id: I381017de86c3f8f74ed84edd848b986bcf85a4b5
2024-04-18 19:02:45 +08:00
openharmony_ci
0337c6cd18
!6938 jit switch compile mode
Merge pull request !6938 from zoumujia/jit
2024-04-17 09:37:19 +00:00
zoumujia
6fb1194a13 jit switch compile mode
Signed-off-by: zoumujia <zoumujia0920@163.com>
2024-04-17 11:00:06 +08:00
xiaoweidong
5eeab88974 !41 [JIT] support pgo
* fix dump issue
* add option to decide pgo dump
* support jit compile class constructor
* fix codecheck
* support jit options with pgo
* rebase
* rebase & update jit profiler
* resolve conflicts
* [JIT] support pgo

Change-Id: Ia71a0dc85926d81b5613e7a9c7a3d24f6f1ca7ca
Signed-off-by: xiaoweidong <xiaoweidong@huawei.com>
2024-04-16 09:42:59 +08:00
xiaoweidong
b27afd924d [JIT] support concurrent compile
Change-Id: I3d1db40eb479434875a9952c0f5f9279ff67cdaa
Signed-off-by: xiaoweidong <xiaoweidong@huawei.com>
2024-04-15 14:04:05 +08:00
huangfeijie
abd82152db issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9GD3S
fix sendData[part 2]
fix sendData[part 2]

Signed-off-by: huangfeijie <huangfeijie@huawei.com>
2024-04-13 20:28:59 +08:00
openharmony_ci
d2cfcb0283
!6841 Fix sendData in asynchronous scenarios
Merge pull request !6841 from huangfeijie/fix_sendData
2024-04-12 12:07:44 +00:00
huangfeijie
42a38ce9ff issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9FCQ6
Fix sendData in asynchronous scenarios
Fix sendData in asynchronous scenarios

Signed-off-by: huangfeijie <huangfeijie@huawei.com>
2024-04-12 11:25:54 +08:00
openharmony_ci
9e46c1099c
!6842 jit enable list
Merge pull request !6842 from zoumujia/jit
2024-04-11 11:51:08 +00:00
openharmony_ci
10af1e4313
!6829 提供属性设置oom水线
Merge pull request !6829 from 任堂宇/master
2024-04-10 11:29:34 +00:00
zoumujia
b4a3695dfc jit enable list
Signed-off-by: zoumujia <zoumujia0920@163.com>
2024-04-10 17:17:49 +08:00
openharmony_ci
8fd2a8cf9f
!6691 Add concurrent FinalizeCall back machanism
Merge pull request !6691 from xiongluo/concurrent_post
2024-04-09 13:01:16 +00:00
openharmony_ci
e4f5cab36b
!6776 Implement hash calculation for numbers and objects
Merge pull request !6776 from udav/hash
2024-04-09 12:31:24 +00:00
rentangyu
2ecc366efe Provides properties to set the OOM waterline
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I9CHSB

Signed-off-by: rentangyu <rentangyu@huawei.com>
2024-04-09 16:09:21 +08:00
xiongluo
e0aa63ca45 Add concurrent FinalizeCallback machanism
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I82114951fa719f71c03bac723896ae7496bb2f86
2024-04-09 09:58:14 +08:00
Artem Udovichenko
978570144e Implement hash calculation for number
Change-Id: Ibf45fa2ad53197088a5f40a29513feedd92c5d04
Signed-off-by: Artem Udovichenko <artem.udovichenko@huawei.com>
2024-04-08 20:18:20 +08:00
chenlincl3
866f6e94ae Unified normalized ohmurl rules
Signed-off-by: chenlincl3 <chenlin201@huawei.com>
Change-Id: I9ec2a7b3f6680de51a7ca01b53f5f7f1773eea6d
2024-04-06 15:49:37 +08:00
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
yaoyuan
61afc6feb7 ElementsKind-Part2
Enable Interpreter ElementsKind but with option as false
ISSUE: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8M1RU

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: Ic2d0d4ecc1a0e08220aa2a2be4ad293ded725f07
2023-12-18 15:57:47 +08:00
openharmony_ci
9e9c6d9c7b
!5443 enable jit compiler
Merge pull request !5443 from wangyue/mergerCode
2023-12-12 10:02:10 +00:00
gwl
7509fce35c fix option
Signed-off-by: gwl <guowanlong@huawei.com>
Change-Id: Ia2651880c4cf97dd22f689ff64916aa4c3906db3
Signed-off-by: wangyue <guowanlong@huawei.com>
2023-12-11 16:24:30 +08:00
openharmony_ci
5ee4b64ef0
!5488 [新需求]: ECMA2022 Top-level await 支持
Merge pull request !5488 from 李晨帅/master
2023-12-10 08:07:26 +00:00
lichenshuai
b21f1eae7c support top-level await for module
支持ECMA2022规范模块顶层await

Issue: #I8LMRX

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Id09ac6f6bc6df9d4790d33f998b2b87586650658
2023-12-09 22:47:29 +08:00
gwl
6ea0679211 enable jit compiler
Signed-off-by: gwl <guowanlong@huawei.com>
Change-Id: Idbbcf67ff47b7897ae59a55015fba09a35faefdf
Signed-off-by: gwl <guowanlong@huawei.com>
2023-12-09 09:18:29 +08:00
yaochaonan
5da3a2b806 Add GetCurrentModuleName interface for library create worker
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8MFLF?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: Ia4451b3a539be20e65e8bf32f63b3345318d3789
2023-12-08 12:41:29 +08:00
openharmony_ci
4e0481becb
!5347 tracing support JSheap memory
Merge pull request !5347 from yp9522/tracing
2023-12-07 08:22:09 +00:00
yanpeng
007df43f45 tracing support JSheap memory
Signed-off-by: yanpeng <yanpeng51@huawei.com>
2023-12-04 16:16:08 +08:00
openharmony_ci
818d009c7d
!5258 Refactor worker serialization
Merge pull request !5258 from dingwen/master
2023-12-01 06:26:27 +00:00
dingwen
8f5e2fa5b4 Implement serialize base class
Description:Implement serialize base class
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8GZGX
Signed-off-by: dingwen <dingwen6@huawei.com>

Change-Id: Ia03fc9cac949d73cafbd6a2603da053d2f886cd1
2023-12-01 09:02:26 +08:00
wanghuan2022
64a7fafc5d [Bug]: 修复new HeapProfiler时崩溃问题
desc: 修复new HeapProfiler时崩溃问题

solu: 使用原生new方式创建对象,而不使用NativeAreaAllocator来创建

issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8KTZV

Signed-off-by: wanghuan2022 <wanghuan80@huawei.com>
Change-Id: Ic2d93cc4ae3455d443db4bcd0a016fc18bdee75b
2023-11-30 19:56:14 +08:00
yaochaonan
86555cd737 Add fastpath Int32ToString, add singleCharTable in vm
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8ID3Q?from=project-issue

Signed-off-by: yaochaonan <yaochaonan@huawei.com>
Change-Id: I950f1a8530b22e2be1357054a8fbfec18a09dae0
2023-11-27 19:28:28 +08:00
openharmony_ci
4db0c9c5ca
!5175 SmartGC add a delay 2s mechanism for cold start
Merge pull request !5175 from dingwen/master
2023-11-10 02:26:17 +00:00
hzzhouzebin
3e91e66019 Fix code reviews
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8EGCK
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I0338eccc70ce5d8829bd9e06825d46e9b285a963
2023-11-09 08:19:27 +08:00
dingwen
9ca424246a SmartGC add a delay 2s mechanism for cold start
Description:SmartGC add a delay 2s mechanism for cold start
Issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8EMEE

Signed-off-by: dingwen <dingwen6@huawei.com>
Change-Id: Ic868b5d549d05c36100dc7c9645f285e0d44222e
2023-11-07 19:19:23 +08:00
yingguofeng@huawei.com
d2ce6cc655 Feat(Aot/PGO/Runtime): Profile Transtion hclass type and aot
Issue: #I872U3
Change-Id: I148cdbc6ac95022cd8dc4a5ad19e526344bb82a3
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-11-06 22:15:31 +08:00
openharmony_ci
8c46634316
!5139 native内存统计
Merge pull request !5139 from 刘家华/master
2023-11-04 11:46:37 +00:00
liujiahua
2f3b4f1714 chunk内存统计
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8AZAU

Signed-off-by: liujiahua <liujiahua1997812@163.com>
Change-Id: Ied818299d8b0557ad1681afad5c49bf4cd2491cb
2023-11-04 15:48:14 +08:00
openharmony_ci
4d9b0609fa
回退 'Pull Request !5088 : 增加JS对象native内存统计' 2023-11-03 02:03:24 +00:00
openharmony_ci
993008bfc6
!5088 增加JS对象native内存统计
Merge pull request !5088 from 刘家华/master
2023-11-02 12:10:02 +00:00
liujiahua
6f5c69b432 增加JS对象占用native内存统计
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8AZAU

Signed-off-by: liujiahua <liujiahua12@huawei.com>

Change-Id: Ic0e031db64ac5959e924d70bfe3ca52c513d53c3
2023-11-02 14:10:42 +08:00
openharmony_ci
30ae8f2926
!5027 Complete pr 4963 of properties add 8
Merge pull request !5027 from xiongluo/complete_properties_8
2023-10-24 14:28:42 +00:00
rentangyu
7e6d93ce5c 多实例录制CPU profiler过程中,销毁Woker实例,会导致方舟主线程采样崩溃,进程退出。
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I8ADBJ1

Signed-off-by: rentangyu <rentangyu@huawei.com>
2023-10-24 10:40:02 +08:00
xiongluo
b7150160c2 complete pr 4963 of properties add 8
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I63896508ecfc2b6a426428cc2a17aa8eab0c57ee
2023-10-23 16:01:02 +08:00
xiongluo
3fa56c9186 change props grow step 8
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: Ie1f4e7e234e14d317b3ca3204dbe6922421efd70
2023-10-20 16:25:32 +08:00
hzzhouzebin
a1929cf2bc Add white list for aot
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I86B1E
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I31f4ba80f8409412d0f310aa315a757e49bf224c
2023-10-12 10:01:44 +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
openharmony_ci
eb9c4e9d4d
!4853 修复:1.多实例录制CPU profiler过程中,销毁Woker实例,会导致方舟主线程采样崩溃,进程退出。2. 创建实例个数大于三个的时候,会出现数据异常的情况。
Merge pull request !4853 from 任堂宇/master
2023-09-26 01:57:06 +00:00
rentangyu
3b7ec99112 Fix: 1. During the multi-instance recording CPU profiler, destroying the Woker instance will cause the main thread sampling of the ark to crash and the process to exit. 2. If the number of created instances is greater than three, data exceptions occur.
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I825YZ

Signed-off-by: rentangyu <rentangyu@huawei.com>
2023-09-25 22:15:59 +08:00
openharmony_ci
fc0419dd68
!4895 Tweak some code
Merge pull request !4895 from Gymee/code_tweaks_part2
2023-09-24 08:26:14 +00:00
Gymee
b46258fca4 Tweak some code
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I83URA

Signed-off-by: Gymee <yumeijie@huawei.com>
Change-Id: Icaecc20e0ee4390b2e766f6e4681dd900253b144
2023-09-23 22:39:02 +08:00
openharmony_ci
323c73180b
!4611 Add force expand interface
Merge pull request !4611 from wuwanqi/forceexpand_br
2023-09-21 06:46:31 +00:00
wuwanqi
1f9e21a744 Add force expand interface
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7S293?from=project-issue

Signed-off-by: wuwanqi <wuwanqi2@huawei.com>
Change-Id: I8d46728c381a956d3a14f036fe4c03ad4d0b4c8b
2023-09-21 09:29:06 +08:00
openharmony_ci
1ec1a2d44a
!4726 修复无法SuspendVM的情况下导致回栈过程中可能出现获取Heap问题
Merge pull request !4726 from 李晨帅/newTargetNotHeapIR
2023-09-18 01:59:18 +00:00
yingguofeng@huawei.com
7b633520b5 Refactor>(PGO): PGO refactor
Adjust the PGO collection model. Complete type data collection by traversing the ProfileTypeInfo of Method through asynchronous threads

Issue: #I7UVD6
Change-Id: Ieb94892698d7a15d948b762ba057e4c0cf6ca1d2
Signed-off-by: yingguofeng@huawei.com <yingguofeng@huawei.com>
2023-09-17 16:00:55 +08:00
lichenshuai
29bdce48b4 修复无法SuspendVM的情况下导致回栈过程中可能出现获取Heap问题
先置空JsStackInfo::loader,再析构heap。

Issue: #I7XPTI

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Ia0fb13d0abf40ef051144d76a71b5fff6debf026
2023-09-17 14:45:37 +08:00
hzzhouzebin
de03c37448 Parse pkg param for aot compiler
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7YPIR
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I5ac2de5cad02c71141f9638198e99550efde21ea
2023-09-09 20:50:21 +08:00
hzzhouzebin
fb81ab9a7f Widden classType for external file
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7WY7J
Signed-off-by: hzzhouzebin <zhouzebin1@huawei.com>
Change-Id: I15b85c141635cdc17d03b914c9189233c3595bb4
2023-09-06 21:34:38 +08:00
xiongluo
e13c36091a Let native pointer list managed by old gc or full gc
Signed-off-by: xiongluo <xiongluo@huawei.com>
Change-Id: I43a3e9d60c2315800b216977a8de97da29c0fbc1
2023-08-25 09:49:55 +08:00
openharmony_ci
208854f4fe
!4607 新增suspendvm接口并确保在获取js栈前suspend vm相关修改
Merge pull request !4607 from 任堂宇/master
2023-08-10 14:10:16 +00:00
Rtangyu
ebf21f6c40 新增suspendvm接口并确保在获取js栈前suspend vm相关修改
issues:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7RSFX

Signed-off-by: Rtangyu <rentangyu@huawei.com>
2023-08-10 15:07:20 +08:00
xwcai98
9a9d72b678 Fix HeapProfiler memory leak
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7RNIW

Signed-off-by: xwcai98 <xwcai98@gmail.com>
Change-Id: I6eb4d14f1d05b93f51188b9af4fa88b4083818d5
2023-08-09 11:41:53 +08:00
xwcai98
d7891cee9d Fix HeapDump BUG
Issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7NW3R

Signed-off-by: xwcai98 <xwcai98@gmail.com>
Change-Id: I36d8f453bf2a214e43e53ed7c68b25d8dd25dc89
2023-08-07 11:03:31 +08:00
hwx1163501
e524aea803 Modifying Code Alarms
Signed-off-by: hwx1163501 <hanjing35@huawei.com>
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I7NDD6
2023-07-24 14:37:49 +08:00
openharmony_ci
fb96fa25c8
!4422 [Bug]: 运行ABC文件过程中,函数panda::ecmascript::EcmaContext::PrintJSErrorInfo进行异常处理时未正确判断error.constructor.prototype.name类型直接将数值作为指针导致非法内存访问漏洞
Merge pull request !4422 from 李晨帅/master
2023-07-15 06:40:45 +00:00
lichenshuai
840fc35ec6 [Bug]: error.constructor.prototype.name类型直接将数值作为指针导致非法内存访问漏洞
name被修改为了整数类型,但在PrintJSErrorInfo中被直接视为EcmaString,导致在取值时发生非法内存访问。

Issue: #I7KW69

Signed-off-by: lichenshuai <lichenshuai@huawei.com>
Change-Id: Iae5b86beda282992fd2dd623ec9bf7bc54f03af6
2023-07-15 11:35:05 +08:00
DaiHN
8fded9db6c CodeCheck Modification and 262case Bugfix of Module Deregister
issue :  #I7KPMO

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I7b7524fa1dc0c35842ad4b6ac6a78958d899bebb
2023-07-14 16:35:32 +08:00
DaiHN
835ed2bb26 deregister module through dynamic import
issue: #I77Q59

Signed-off-by: DaiHN <daihuina1@huawei.com>
Change-Id: I83f5825c2003923a3ad1b5dcc011c350ff470df4
2023-07-09 21:31:21 +08:00