mirror of
https://github.com/LSPosed/LSPlant.git
synced 2025-05-04 20:42:02 +08:00
Fix fast interpreter function name (#19)
This commit is contained in:
parent
78eecf3f7b
commit
5867b67380
@ -42,7 +42,7 @@ public:
|
|||||||
SetAccessFlags(access_flags);
|
SetAccessFlags(access_flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetNonIntrinsic() {
|
void ClearFastInterpretFlag() {
|
||||||
auto access_flags = GetAccessFlags();
|
auto access_flags = GetAccessFlags();
|
||||||
access_flags &= ~kAccFastInterpreterToInterpreterInvoke;
|
access_flags &= ~kAccFastInterpreterToInterpreterInvoke;
|
||||||
SetAccessFlags(access_flags);
|
SetAccessFlags(access_flags);
|
||||||
|
@ -502,7 +502,7 @@ bool DoHook(ArtMethod *target, ArtMethod *hook, ArtMethod *backup) {
|
|||||||
// copy after setNonCompilable
|
// copy after setNonCompilable
|
||||||
backup->CopyFrom(target);
|
backup->CopyFrom(target);
|
||||||
|
|
||||||
target->SetNonIntrinsic();
|
target->ClearFastInterpretFlag();
|
||||||
|
|
||||||
target->SetEntryPoint(trampoline);
|
target->SetEntryPoint(trampoline);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user