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

Issue 23625003: Cleanup Mutex and related classes. (Closed)

Created:
7 years, 3 months ago by Benedikt Meurer
Modified:
7 years, 3 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Cleanup Mutex and related classes. Drop the previous Mutex and ScopedLock classes from platform files. Add new Mutex, RecursiveMutex and LockGuard classes, which are designed after their C++11 counterparts, so that at some point we can simply drop our custom code and switch to the C++11 classes. We distinguish regular and recursive mutexes, as the latter don't work well with condition variables, which will be introduced by a followup CL. R=mstarzinger@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=16416

Patch Set 1 #

Total comments: 6

Patch Set 2 : REBASE #

Patch Set 3 : Rename synchronization to platform. #

Patch Set 4 : Removed obsolete comments. #

Patch Set 5 : Fix potential race. #

Patch Set 6 : Rename header guards. #

Patch Set 7 : REBASE #

Patch Set 8 : REBASE #

Patch Set 9 : REBASE #

Patch Set 10 : REBASE #

Unified diffs Side-by-side diffs Delta from patch set Stats (+685 lines, -343 lines) Patch
M src/assembler.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M src/d8.h View 1 chunk +1 line, -1 line 0 comments Download
M src/d8.cc View 3 chunks +2 lines, -3 lines 0 comments Download
M src/d8-debug.h View 2 chunks +1 line, -2 lines 0 comments Download
M src/d8-debug.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/debug.h View 6 chunks +5 lines, -6 lines 0 comments Download
M src/debug.cc View 12 chunks +14 lines, -25 lines 0 comments Download
M src/debug-agent.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/debug-agent.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M src/gdb-jit.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M src/heap.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/heap.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M src/isolate.h View 1 2 3 4 4 chunks +8 lines, -8 lines 0 comments Download
M src/isolate.cc View 1 2 3 4 9 chunks +7 lines, -15 lines 0 comments Download
M src/log-utils.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/log-utils.cc View 3 chunks +1 line, -6 lines 0 comments Download
M src/optimizing-compiler-thread.h View 1 2 3 4 5 5 chunks +4 lines, -7 lines 0 comments Download
M src/optimizing-compiler-thread.cc View 1 2 3 4 5 4 chunks +4 lines, -4 lines 0 comments Download
M src/platform.h View 1 2 3 4 5 4 chunks +1 line, -72 lines 0 comments Download
M src/platform-cygwin.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/platform-freebsd.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/platform-linux.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M src/platform-macos.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M src/platform-openbsd.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M src/platform-posix.cc View 1 2 3 4 5 1 chunk +0 lines, -42 lines 0 comments Download
M src/platform-solaris.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/platform-win32.cc View 1 2 3 4 5 3 chunks +2 lines, -42 lines 0 comments Download
A src/platform/mutex.h View 1 2 3 4 5 1 chunk +223 lines, -0 lines 0 comments Download
A src/platform/mutex.cc View 1 2 1 chunk +223 lines, -0 lines 0 comments Download
M src/platform/time.cc View 1 2 3 4 5 6 7 8 5 chunks +13 lines, -15 lines 0 comments Download
M src/sampler.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -5 lines 0 comments Download
M src/spaces.h View 1 2 4 chunks +3 lines, -7 lines 0 comments Download
M src/spaces.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/v8.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/v8globals.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/v8threads.h View 1 chunk +1 line, -1 line 0 comments Download
M src/v8threads.cc View 4 chunks +3 lines, -5 lines 0 comments Download
M src/win32-headers.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/cctest.gyp View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-debug.cc View 3 chunks +4 lines, -7 lines 0 comments Download
M test/cctest/test-lock.cc View 1 chunk +0 lines, -27 lines 0 comments Download
A test/cctest/test-mutex.cc View 1 2 1 chunk +118 lines, -0 lines 0 comments Download
M test/cctest/test-platform-linux.cc View 2 chunks +5 lines, -8 lines 0 comments Download
M tools/gyp/v8.gyp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Benedikt Meurer
Hey Michi, This is mostly mechnical refactoring. PTAL (had to create a new CL because ...
7 years, 3 months ago (2013-08-28 07:18:34 UTC) #1
Michael Starzinger
Is there a particular reason for adding the "synchronization" subdirectory?
7 years, 3 months ago (2013-08-28 10:42:49 UTC) #2
Benedikt Meurer
On 2013/08/28 10:42:49, Michael Starzinger wrote: > Is there a particular reason for adding the ...
7 years, 3 months ago (2013-08-28 10:44:45 UTC) #3
Michael Starzinger
As discussed offline: Instead of creating a new "synchronization" directory, let's use a more general ...
7 years, 3 months ago (2013-08-28 12:20:53 UTC) #4
Benedikt Meurer
PTAL https://codereview.chromium.org/23625003/diff/1/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/23625003/diff/1/src/isolate.cc#newcode371 src/isolate.cc:371: } On 2013/08/28 12:20:54, Michael Starzinger wrote: > ...
7 years, 3 months ago (2013-08-28 12:43:23 UTC) #5
Michael Starzinger
LGTM.
7 years, 3 months ago (2013-08-28 13:03:40 UTC) #6
Benedikt Meurer
7 years, 3 months ago (2013-08-29 10:00:11 UTC) #7
Message was sent while issue was closed.
Committed patchset #10 manually as r16416 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698