Skip to content

Commit

Permalink
Disable C2 compiler in unit tests (#5043)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lmac012 authored Sep 20, 2024
1 parent 0e642df commit 0d7a9e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ android {
testOptions {
unitTests.returnDefaultValues = true
animationsDisabled = true
unitTests.all {
jvmArgs '-XX:+TieredCompilation', '-XX:TieredStopAtLevel=1'
}
}
}

Expand Down

0 comments on commit 0d7a9e5

Please sign in to comment.