mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-27 04:00:37 +00:00
!9245 rectification of inconsistent code
Merge pull request !9245 from yangxiaoshuai2022/master
This commit is contained in:
commit
ebfb6afaeb
@ -3357,7 +3357,7 @@ void SlowPathLowering::LowerCallInternal(GateRef gate)
|
||||
for (size_t i = 0; i < num; ++i) {
|
||||
args[i] = acc_.GetValueIn(gate, i);
|
||||
}
|
||||
ASSERT(num >= 3); // 3:skip argc argv newtarget
|
||||
ASSERT(num >= 3); // 3: skip argc argv newtarget
|
||||
std::vector<GateRef> argsFastCall(num - 3); // 3:skip argc argv newtarget
|
||||
size_t j = 0;
|
||||
for (size_t i = 0; i < num; ++i) {
|
||||
|
@ -1378,6 +1378,14 @@ public:
|
||||
finalizeTaskCallback_ = callback;
|
||||
}
|
||||
|
||||
uint64_t GetJobId()
|
||||
{
|
||||
if (jobId_ == UINT64_MAX) {
|
||||
jobId_ = 0;
|
||||
}
|
||||
return ++jobId_;
|
||||
}
|
||||
|
||||
void SetAsyncCleanTaskCallback(const NativePointerTaskCallback &callback)
|
||||
{
|
||||
asyncCleanTaskCb_ = callback;
|
||||
@ -1431,14 +1439,6 @@ public:
|
||||
return machineCodeLowMemory_;
|
||||
}
|
||||
|
||||
uint64_t GetJobId()
|
||||
{
|
||||
if (jobId_ == UINT64_MAX) {
|
||||
jobId_ = 0;
|
||||
}
|
||||
return ++jobId_;
|
||||
}
|
||||
|
||||
void *GetEnv() const
|
||||
{
|
||||
return env_;
|
||||
@ -1611,13 +1611,13 @@ private:
|
||||
ConditionVariable suspendCondVar_;
|
||||
SuspendBarrier *suspendBarrier_ {nullptr};
|
||||
|
||||
uint64_t jobId_ {0};
|
||||
|
||||
ThreadType threadType_ {ThreadType::JS_THREAD};
|
||||
RecursiveMutex jitMutex_;
|
||||
bool machineCodeLowMemory_ {false};
|
||||
RecursiveMutex profileTypeAccessorLockMutex_;
|
||||
|
||||
uint64_t jobId_ {0};
|
||||
|
||||
#ifndef NDEBUG
|
||||
MutatorLock::MutatorLockState mutatorLockState_ = MutatorLock::MutatorLockState::UNLOCKED;
|
||||
std::atomic<bool> launchedSuspendAll_ {false};
|
||||
|
Loading…
Reference in New Issue
Block a user