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

Issue 2618873002: Move seven small arrays to read-only data segment (Closed)

Created:
3 years, 11 months ago by brucedawson
Modified:
3 years, 11 months ago
CC:
Bret, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move seven small arrays to read-only data segment Global arrays should be tagged as const when possible. This lets most compilers put them in the read-only data segment which is always shared between processes. Two of the relevant structs also fell afoul of a VC++ bug that prevents variables from being put in the read-only data segment. Thus this change works by *adding* const eight times and *removing* it twice. The net result is just 556 bytes being moved, but it's the thought that counts. Compilers are awesome. VC++ bug is filed here: https://connect.microsoft.com/VisualStudio/feedback/details/3117602 BUG=677351 Review-Url: https://codereview.chromium.org/2618873002 Cr-Commit-Position: refs/heads/master@{#442329} Committed: https://chromium.googlesource.com/chromium/src/+/aef5c1f5d4a23b24300e2bc3e2099c14e48ce21e

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -10 lines) Patch
M chrome/browser/themes/browser_theme_pack.cc View 8 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 13 (9 generated)
brucedawson
3 years, 11 months ago (2017-01-06 19:53:16 UTC) #7
jochen (gone - plz use gerrit)
lgtm
3 years, 11 months ago (2017-01-09 08:38:23 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2618873002/1
3 years, 11 months ago (2017-01-09 18:54:23 UTC) #10
commit-bot: I haz the power
3 years, 11 months ago (2017-01-09 20:37:55 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/aef5c1f5d4a23b24300e2bc3e209...

Powered by Google App Engine
This is Rietveld 408576698