fix: allocate for more than eight LithoFilter array items (#2643)
This commit is contained in:
parent
65087833b0
commit
5de8ee51c1
1 changed files with 3 additions and 3 deletions
|
|
@ -176,7 +176,7 @@ class LithoFilterPatch : BytecodePatch(
|
||||||
"""
|
"""
|
||||||
new-instance v1, $classDescriptor
|
new-instance v1, $classDescriptor
|
||||||
invoke-direct {v1}, $classDescriptor-><init>()V
|
invoke-direct {v1}, $classDescriptor-><init>()V
|
||||||
const/4 v2, ${filterCount++}
|
const/16 v2, ${filterCount++}
|
||||||
aput-object v1, v0, v2
|
aput-object v1, v0, v2
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
@ -187,7 +187,7 @@ class LithoFilterPatch : BytecodePatch(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun close() = LithoFilterFingerprint.result!!
|
override fun close() = LithoFilterFingerprint.result!!
|
||||||
.mutableMethod.replaceInstruction(0, "const/4 v0, $filterCount")
|
.mutableMethod.replaceInstruction(0, "const/16 v0, $filterCount")
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
private val MethodFingerprint.patternScanResult
|
private val MethodFingerprint.patternScanResult
|
||||||
|
|
@ -208,4 +208,4 @@ class LithoFilterPatch : BytecodePatch(
|
||||||
|
|
||||||
private var filterCount = 0
|
private var filterCount = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue