Skip to content

Commit

Permalink
Disable deferred tracing in R8
Browse files Browse the repository at this point in the history
Bug: 227455445
Bug: 233630328
Test: m -j77 SystemUI + disasm grep mStatusBarWindowCallback
Change-Id: I2d6bb859e74c1afc398e629e53d2ce541ef27642
  • Loading branch information
ricowind committed May 30, 2022
1 parent 1db9d96 commit 1cd1729
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions java/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ func init() {
}, dexerJavaVmFlagsList...))
exportedVars.ExportStringListStaticVariable("R8Flags", append([]string{
"-JXmx2048M",
// Disable this optimization as it can impact weak reference semantics. See b/233432839.
"-JDcom.android.tools.r8.disableEnqueuerDeferredTracing=true",
}, dexerJavaVmFlagsList...))

exportedVars.ExportStringListStaticVariable("CommonJdkFlags", []string{
Expand Down

0 comments on commit 1cd1729

Please sign in to comment.