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

Issue 2605393002: Move syncer::kModelTypeInfoMap array to read-only data segment (Closed)

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

Description

Move syncer::kModelTypeInfoMap array to read-only data segment Due to a quirk in VC++ it is easy to accidentally prevent a const global array from being placed in the read-only data segment. This change removes some should-be-harmless 'const' keywords to work around this quirk and move ~960 bytes to the .rdata (read-only) data segment in chrome.dll. VC++ bug is filed here: https://connect.microsoft.com/VisualStudio/feedback/details/3117602 Other instances of this quirk are also being worked around. BUG=677351 Committed: https://crrev.com/f647c9f14b76450131f88d99c186010d960aeccf Cr-Commit-Position: refs/heads/master@{#441250}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M components/sync/syncable/model_type.cc View 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
brucedawson
3 years, 11 months ago (2017-01-02 19:10:08 UTC) #7
stanisc
Would it be better to use a #define that get resolved as nothing on Windows ...
3 years, 11 months ago (2017-01-03 19:57:00 UTC) #8
brucedawson
On 2017/01/03 19:57:00, stanisc wrote: > Would it be better to use a #define that ...
3 years, 11 months ago (2017-01-03 20:35:15 UTC) #9
stanisc
Well, either way is fine with me. I agree that this struct is local to ...
3 years, 11 months ago (2017-01-03 21:48:15 UTC) #10
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/2605393002/1
3 years, 11 months ago (2017-01-03 21:56:04 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
3 years, 11 months ago (2017-01-03 23:27:28 UTC) #15
commit-bot: I haz the power
3 years, 11 months ago (2017-01-03 23:30:59 UTC) #17
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f647c9f14b76450131f88d99c186010d960aeccf
Cr-Commit-Position: refs/heads/master@{#441250}

Powered by Google App Engine
This is Rietveld 408576698