Skip to content

Commit 0d7a9e5

Browse files
authored
Disable C2 compiler in unit tests (#5043)
Task/Issue URL: https://app.asana.com/0/1205617573940217/1208355525889878/f ### Description This PR disables C2 compiler in unit tests. C2 compiler provides no value in the context of unit tests and may be responsible for JVM crashes that we're experiencing. ### Steps to test this PR QA-optional ### No UI changes
1 parent 0e642df commit 0d7a9e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ android {
167167
testOptions {
168168
unitTests.returnDefaultValues = true
169169
animationsDisabled = true
170+
unitTests.all {
171+
jvmArgs '-XX:+TieredCompilation', '-XX:TieredStopAtLevel=1'
172+
}
170173
}
171174
}
172175

0 commit comments

Comments
 (0)