From 0d7a9e5de5fc83868022f7b97d020eea4a5ee13a Mon Sep 17 00:00:00 2001 From: Lukasz Macionczyk Date: Fri, 20 Sep 2024 12:23:58 +0200 Subject: [PATCH] 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 --- app/build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/build.gradle b/app/build.gradle index eae14086fdb7..ce055fefffb7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -167,6 +167,9 @@ android { testOptions { unitTests.returnDefaultValues = true animationsDisabled = true + unitTests.all { + jvmArgs '-XX:+TieredCompilation', '-XX:TieredStopAtLevel=1' + } } }