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

Issue 1798203002: Support read/write memory-mapped files. (Closed)

Created:
4 years, 9 months ago by bcwhite
Modified:
3 years, 6 months ago
CC:
chromium-reviews, jshin+watch_chromium.org, vmpstr+watch_chromium.org, Lei Zhang
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support read/write memory-mapped files. See also: chromium-dev thread "Support for Writable Memory Mapped Files", specifically the last few messages starting with "And... we're back!". BUG=546019 Committed: https://crrev.com/f0dfab0bef147f55d6460b42878ef71d0578cc59 Cr-Commit-Position: refs/heads/master@{#394868}

Patch Set 1 #

Patch Set 2 : a bit of clean-up #

Patch Set 3 : rebased #

Patch Set 4 : fixed file extension on POSIX builds #

Patch Set 5 : added READ_ONLY parameter to other initializations of MemoryMappedFile #

Patch Set 6 : allow default READ_ONLY for all forms of Initialize() to avoid tiny refactoring in many places #

Patch Set 7 : rebased #

Total comments: 14

Patch Set 8 : addressed comments by danakj #

Patch Set 9 : rebased #

Total comments: 9

Patch Set 10 : removed Windows-specific InitializeAsImageSection call #

Patch Set 11 : rebased #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -50 lines) Patch
M base/files/memory_mapped_file.h View 1 2 3 4 5 6 7 8 9 4 chunks +53 lines, -21 lines 0 comments Download
M base/files/memory_mapped_file.cc View 1 2 3 4 5 6 7 3 chunks +40 lines, -7 lines 0 comments Download
M base/files/memory_mapped_file_posix.cc View 1 2 3 2 chunks +19 lines, -2 lines 2 comments Download
M base/files/memory_mapped_file_unittest.cc View 1 2 3 4 5 6 7 8 chunks +76 lines, -8 lines 0 comments Download
M base/files/memory_mapped_file_win.cc View 1 2 3 4 5 6 7 8 9 3 chunks +25 lines, -12 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 60 (30 generated)
bcwhite
This isn't finished but I would like to get some feedback on the design & ...
4 years, 9 months ago (2016-03-14 21:46:45 UTC) #2
bcwhite
On 2016/03/14 21:46:45, bcwhite wrote: > This isn't finished but I would like to get ...
4 years, 9 months ago (2016-03-16 21:40:22 UTC) #6
bcwhite
On 2016/03/16 21:40:22, bcwhite wrote: > On 2016/03/14 21:46:45, bcwhite wrote: > > This isn't ...
4 years, 8 months ago (2016-03-30 19:38:12 UTC) #7
Mark Mentovai
I’m at a summit this week and am a little constrained. +danakj for maybe quicker ...
4 years, 8 months ago (2016-03-30 19:46:23 UTC) #9
bcwhite
On 2016/03/30 19:46:23, Mark Mentovai wrote: > I’m at a summit this week and am ...
4 years, 8 months ago (2016-04-06 15:49:00 UTC) #15
bcwhite
On 2016/04/06 15:49:00, bcwhite wrote: > On 2016/03/30 19:46:23, Mark Mentovai wrote: > > I’m ...
4 years, 8 months ago (2016-04-21 23:40:29 UTC) #25
danakj
+thestig who was active on the thread proposing this on chromium-dev His last comment was ...
4 years, 8 months ago (2016-04-25 21:26:17 UTC) #30
bcwhite
> I don't see anything wrong with the implementation as > written. I am also ...
4 years, 8 months ago (2016-04-26 00:08:46 UTC) #31
bcwhite
On 2016/04/26 00:08:46, bcwhite wrote: > > I don't see anything wrong with the implementation ...
4 years, 7 months ago (2016-05-02 19:42:33 UTC) #32
Mark Mentovai
After a bunch of summits, convergences, travel, and vacation, I’m ready to look at this ...
4 years, 7 months ago (2016-05-02 20:26:00 UTC) #33
bcwhite
On 2016/05/02 20:26:00, Mark Mentovai wrote: > After a bunch of summits, convergences, travel, and ...
4 years, 7 months ago (2016-05-02 21:15:32 UTC) #34
bcwhite
Anything new?
4 years, 7 months ago (2016-05-06 18:07:19 UTC) #35
Mark Mentovai
Yes. I think we should move forward with this. As you pointed out, I’d rather ...
4 years, 7 months ago (2016-05-06 18:17:33 UTC) #36
forshaw
https://codereview.chromium.org/1798203002/diff/490001/base/files/memory_mapped_file_win.cc File base/files/memory_mapped_file_win.cc (right): https://codereview.chromium.org/1798203002/diff/490001/base/files/memory_mapped_file_win.cc#newcode34 base/files/memory_mapped_file_win.cc:34: int flags = image_ ? SEC_IMAGE : 0; While ...
4 years, 7 months ago (2016-05-09 21:23:20 UTC) #38
bcwhite
https://codereview.chromium.org/1798203002/diff/490001/base/files/memory_mapped_file_win.cc File base/files/memory_mapped_file_win.cc (right): https://codereview.chromium.org/1798203002/diff/490001/base/files/memory_mapped_file_win.cc#newcode34 base/files/memory_mapped_file_win.cc:34: int flags = image_ ? SEC_IMAGE : 0; On ...
4 years, 7 months ago (2016-05-10 00:44:41 UTC) #39
erikchen
https://codereview.chromium.org/1798203002/diff/490001/base/files/memory_mapped_file.cc File base/files/memory_mapped_file.cc (right): https://codereview.chromium.org/1798203002/diff/490001/base/files/memory_mapped_file.cc#newcode47 base/files/memory_mapped_file.cc:47: NOTREACHED(); Should this be a CHECK(false) instead? https://codereview.chromium.org/1798203002/diff/490001/base/files/memory_mapped_file_win.cc File ...
4 years, 7 months ago (2016-05-10 02:21:52 UTC) #41
forshaw
https://codereview.chromium.org/1798203002/diff/490001/base/files/memory_mapped_file_win.cc File base/files/memory_mapped_file_win.cc (right): https://codereview.chromium.org/1798203002/diff/490001/base/files/memory_mapped_file_win.cc#newcode34 base/files/memory_mapped_file_win.cc:34: int flags = image_ ? SEC_IMAGE : 0; On ...
4 years, 7 months ago (2016-05-10 07:04:30 UTC) #42
danakj
https://codereview.chromium.org/1798203002/diff/490001/base/files/memory_mapped_file.cc File base/files/memory_mapped_file.cc (right): https://codereview.chromium.org/1798203002/diff/490001/base/files/memory_mapped_file.cc#newcode47 base/files/memory_mapped_file.cc:47: NOTREACHED(); On 2016/05/10 02:21:51, erikchen wrote: > Should this ...
4 years, 7 months ago (2016-05-10 20:52:02 UTC) #43
bcwhite
https://codereview.chromium.org/1798203002/diff/490001/base/files/memory_mapped_file.cc File base/files/memory_mapped_file.cc (right): https://codereview.chromium.org/1798203002/diff/490001/base/files/memory_mapped_file.cc#newcode47 base/files/memory_mapped_file.cc:47: NOTREACHED(); On 2016/05/10 02:21:51, erikchen wrote: > Should this ...
4 years, 7 months ago (2016-05-10 21:00:54 UTC) #44
bcwhite
On 2016/05/10 21:00:54, bcwhite wrote: > https://codereview.chromium.org/1798203002/diff/490001/base/files/memory_mapped_file.cc > File base/files/memory_mapped_file.cc (right): > > https://codereview.chromium.org/1798203002/diff/490001/base/files/memory_mapped_file.cc#newcode47 > ...
4 years, 7 months ago (2016-05-18 15:23:13 UTC) #45
forshaw
On 2016/05/18 15:23:13, bcwhite wrote: > On 2016/05/10 21:00:54, bcwhite wrote: > > > https://codereview.chromium.org/1798203002/diff/490001/base/files/memory_mapped_file.cc ...
4 years, 7 months ago (2016-05-18 17:45:07 UTC) #46
bcwhite
On 2016/05/18 17:45:07, forshaw wrote: > On 2016/05/18 15:23:13, bcwhite wrote: > > On 2016/05/10 ...
4 years, 7 months ago (2016-05-19 14:50:52 UTC) #47
Mark Mentovai
Yes. One more question. https://codereview.chromium.org/1798203002/diff/530001/base/files/memory_mapped_file_posix.cc File base/files/memory_mapped_file_posix.cc (right): https://codereview.chromium.org/1798203002/diff/530001/base/files/memory_mapped_file_posix.cc#newcode78 base/files/memory_mapped_file_posix.cc:78: // POSIX won't auto-extend the ...
4 years, 7 months ago (2016-05-19 14:57:06 UTC) #48
bcwhite
https://codereview.chromium.org/1798203002/diff/530001/base/files/memory_mapped_file_posix.cc File base/files/memory_mapped_file_posix.cc (right): https://codereview.chromium.org/1798203002/diff/530001/base/files/memory_mapped_file_posix.cc#newcode78 base/files/memory_mapped_file_posix.cc:78: // POSIX won't auto-extend the file when it is ...
4 years, 7 months ago (2016-05-19 15:40:25 UTC) #49
Mark Mentovai
LGTM
4 years, 7 months ago (2016-05-19 16:37:39 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1798203002/530001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1798203002/530001
4 years, 7 months ago (2016-05-19 17:47:25 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/224992)
4 years, 7 months ago (2016-05-19 19:14:05 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1798203002/530001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1798203002/530001
4 years, 7 months ago (2016-05-19 21:12:44 UTC) #56
commit-bot: I haz the power
Committed patchset #11 (id:530001)
4 years, 7 months ago (2016-05-19 21:18:53 UTC) #58
commit-bot: I haz the power
4 years, 7 months ago (2016-05-19 21:21:06 UTC) #60
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/f0dfab0bef147f55d6460b42878ef71d0578cc59
Cr-Commit-Position: refs/heads/master@{#394868}

Powered by Google App Engine
This is Rietveld 408576698