fix offset of inline_max_code_units_ in Android11
This commit is contained in:
parent
e10bde00db
commit
cf1708f152
|
|
@ -15,6 +15,9 @@ namespace SandHook {
|
|||
Size calOffset(JNIEnv *jniEnv, art::CompilerOptions *p) override {
|
||||
if (SDK_INT < ANDROID_N)
|
||||
return getParentSize() + 1;
|
||||
if (SDK_INT >= ANDROID_Q) {
|
||||
return BYTE_POINT + 3 * sizeof(size_t);
|
||||
}
|
||||
if (SDK_INT >= ANDROID_O) {
|
||||
return BYTE_POINT + 5 * sizeof(size_t);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue