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

Issue 21063: Transition POSIX shmem to use lockf(), not semaphores. (Closed)

Created:
11 years, 10 months ago by John Grabowski
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, TVL, jeremy
Visibility:
Public.

Description

Transition POSIX shmem to use lockf(), not semaphores. Eliminates resource leak possibility; allows complete sharing of shmem by fd without name. Add actual multiprocess shmem/locking unit test. Fix flaky shmem unit test. agl: please review. Amanda: please look over as you've been here before. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=9235

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -57 lines) Patch
M base/shared_memory.h View 1 4 chunks +12 lines, -7 lines 0 comments Download
M base/shared_memory_posix.cc View 1 6 chunks +23 lines, -31 lines 0 comments Download
M base/shared_memory_unittest.cc View 1 4 chunks +104 lines, -19 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
John Grabowski
11 years, 10 months ago (2009-02-05 00:31:47 UTC) #1
agl
LGTM apart from the comment below http://codereview.chromium.org/21063/diff/1/3 File base/shared_memory_posix.cc (right): http://codereview.chromium.org/21063/diff/1/3#newcode252 Line 252: while (lockf(mapped_file_, ...
11 years, 10 months ago (2009-02-05 00:48:08 UTC) #2
Avi (use Gerrit)
http://codereview.chromium.org/21063/diff/1/4 File base/shared_memory.h (right): http://codereview.chromium.org/21063/diff/1/4#newcode127 Line 127: // lock at the same time. There are ...
11 years, 10 months ago (2009-02-05 01:00:49 UTC) #3
Amanda Walker
LGTM with agl's & avi's comments applied.
11 years, 10 months ago (2009-02-05 01:47:51 UTC) #4
John Grabowski
On 2009/02/05 01:47:51, Amanda Walker wrote: > LGTM with agl's & avi's comments applied. Thanks ...
11 years, 10 months ago (2009-02-05 02:34:54 UTC) #5
Amanda Walker
11 years, 10 months ago (2009-02-05 03:34:46 UTC) #6
Still LGTM

Powered by Google App Engine
This is Rietveld 408576698