Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Issue 2493543002: Disable proguard optimization that removes write-only fields. (Closed)

Created:
4 years, 1 month ago by gsennton
Modified:
4 years, 1 month ago
Reviewers:
Torne
CC:
chromium-reviews, agrieve
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable proguard optimization that removes write-only fields. Static fields in Java are often assumed to stay alive throughout the runtime of the entire program. However, the proguard field/removal/writeonly optimization removes even static fields that are only written to. This breaks some WebView code that relies on static fields to hold onto a file-lock which prevents file-access from other processes. .dex size increase after this change: uncompressed dex, Chrome 5670532 -> 5714496, diff 43964 compressed dex, Chrome 2491927 -> 2512376, diff 20449 uncompressed dex, WebView 999208 -> 1005192, diff 5984 compressed dex, WebView 430871 -> 434089, diff 3218 BUG=647291

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M base/android/proguard/chromium_apk.flags View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
gsennton
4 years, 1 month ago (2016-11-09 18:55:36 UTC) #2
gsennton
I added classes.dex measurements to the bug rather than here.
4 years, 1 month ago (2016-11-09 18:56:11 UTC) #3
agrieve
On 2016/11/09 18:56:11, gsennton wrote: > I added classes.dex measurements to the bug rather than ...
4 years, 1 month ago (2016-11-09 20:38:24 UTC) #4
gsennton
On 2016/11/09 20:38:24, agrieve wrote: > On 2016/11/09 18:56:11, gsennton wrote: > > I added ...
4 years, 1 month ago (2016-11-10 10:23:41 UTC) #5
gsennton
4 years, 1 month ago (2016-11-10 10:23:57 UTC) #6
Torne
Yeah, that's too big a size regression, we'll try -keep'ing the field instead as that ...
4 years, 1 month ago (2016-11-10 13:42:02 UTC) #7
gsennton
4 years, 1 month ago (2016-11-11 13:14:57 UTC) #9
Message was sent while issue was closed.
On 2016/11/10 13:42:02, Torne wrote:
> Yeah, that's too big a size regression, we'll try -keep'ing the field instead
as
> that should probably work, and if not come up with another way to retain the
> reference.

Closing this CL given Torne's last comment.

Powered by Google App Engine
This is Rietveld 408576698