Skip to content

Commit

Permalink
fix: allocate for more than eight LithoFilter array items (#2643)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnconner122 committed Jul 15, 2023
1 parent 1dfd107 commit fc8660b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class LithoFilterPatch : BytecodePatch(
"""
new-instance v1, $classDescriptor
invoke-direct {v1}, $classDescriptor-><init>()V
const/4 v2, ${filterCount++}
const/16 v2, ${filterCount++}
aput-object v1, v0, v2
"""
)
Expand All @@ -187,7 +187,7 @@ class LithoFilterPatch : BytecodePatch(
}

override fun close() = LithoFilterFingerprint.result!!
.mutableMethod.replaceInstruction(0, "const/4 v0, $filterCount")
.mutableMethod.replaceInstruction(0, "const/16 v0, $filterCount")

companion object {
private val MethodFingerprint.patternScanResult
Expand All @@ -208,4 +208,4 @@ class LithoFilterPatch : BytecodePatch(

private var filterCount = 0
}
}
}

0 comments on commit fc8660b

Please sign in to comment.