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

Issue 10827400: Advertise a minimum alignment for SharedMemory::Map(). (Closed)

Created:
8 years, 4 months ago by DaleCurtis
Modified:
8 years, 4 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Advertise a minimum alignment for SharedMemory::Map(). No real changes, just adds a DCHECK() and unit test for a minimum alignment that callers can count on from Map(). Map() is already returning addresses which are aligned to the platform page size. Necessary for a media use case in which a wrapped shared memory object is passed around and is expected to have a certain alignment. BUG=none TEST=unittests, try bots. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152218

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rename enum. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -5 lines) Patch
M base/shared_memory.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M base/shared_memory_nacl.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download
M base/shared_memory_posix.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download
M base/shared_memory_unittest.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
M base/shared_memory_win.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
DaleCurtis
jar: I figured you are most likely to know how sane this change is. This ...
8 years, 4 months ago (2012-08-17 21:07:04 UTC) #1
jar (doing other things)
This seems plausible... but I don't think this is a definitive test. IMO, if you ...
8 years, 4 months ago (2012-08-17 21:32:32 UTC) #2
DaleCurtis
Thanks for review! I will indeed be CHECK() this assumption in the calling code. https://chromiumcodereview.appspot.com/10827400/diff/1/base/shared_memory.h ...
8 years, 4 months ago (2012-08-17 21:43:46 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/10827400/7001
8 years, 4 months ago (2012-08-17 21:46:23 UTC) #4
commit-bot: I haz the power
8 years, 4 months ago (2012-08-18 02:17:28 UTC) #5
Change committed as 152218

Powered by Google App Engine
This is Rietveld 408576698