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

Issue 21087012: Simplify implementation of Mutex. (Closed)

Created:
7 years, 4 months ago by Benedikt Meurer
Modified:
7 years, 4 months ago
Reviewers:
Sven Panne
CC:
v8-dev
Visibility:
Public.

Description

Simplify implementation of Mutex. Also moves Mutex to its own file mutex.{cc,h}. R=svenpanne@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=15964

Patch Set 1 #

Patch Set 2 : Similarity 99% #

Patch Set 3 : No need to guard inclusion of errno.h #

Total comments: 4

Patch Set 4 : Update unit tests. #

Patch Set 5 : Fix unit test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+461 lines, -390 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 3 chunks +5 lines, -4 lines 0 comments Download
M src/debug.cc View 9 chunks +13 lines, -22 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/heap.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/isolate.h View 4 chunks +8 lines, -8 lines 0 comments Download
M src/isolate.cc View 9 chunks +10 lines, -16 lines 0 comments Download
M src/log-utils.cc View 1 chunk +1 line, -1 line 0 comments Download
A src/mutex.h View 1 chunk +130 lines, -0 lines 0 comments Download
A src/mutex.cc View 1 2 1 chunk +110 lines, -0 lines 0 comments Download
M src/optimizing-compiler-thread.h View 3 chunks +2 lines, -8 lines 0 comments Download
M src/optimizing-compiler-thread.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M src/platform.h View 3 chunks +1 line, -71 lines 0 comments Download
M src/platform-cygwin.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform-freebsd.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform-linux.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform-macos.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform-nullos.cc View 1 chunk +0 lines, -31 lines 0 comments Download
M src/platform-openbsd.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform-posix.cc View 1 chunk +0 lines, -42 lines 0 comments Download
M src/platform-solaris.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/platform-win32.cc View 2 chunks +1 line, -41 lines 0 comments Download
M src/sampler.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/spaces.h View 3 chunks +3 lines, -6 lines 0 comments Download
M src/spaces.cc View 1 chunk +1 line, -1 line 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 chunk +0 lines, -1 line 0 comments Download
M test/cctest/cctest.gyp View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M test/cctest/test-debug.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-lock.cc View 1 2 3 1 chunk +0 lines, -89 lines 0 comments Download
A test/cctest/test-mutex.cc View 1 2 3 1 chunk +70 lines, -0 lines 0 comments Download
M test/cctest/test-platform-linux.cc View 2 chunks +7 lines, -8 lines 0 comments Download
M test/cctest/test-platform-nullos.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
A test/cctest/test-semaphore.cc View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
M tools/gyp/v8.gyp View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Benedikt Meurer
PTAL
7 years, 4 months ago (2013-07-30 13:50:43 UTC) #1
Sven Panne
LGTM if the scope change mentioned below is OK. https://codereview.chromium.org/21087012/diff/8001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/21087012/diff/8001/src/isolate.cc#newcode373 src/isolate.cc:373: ...
7 years, 4 months ago (2013-07-30 15:09:56 UTC) #2
Benedikt Meurer
https://codereview.chromium.org/21087012/diff/8001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/21087012/diff/8001/src/isolate.cc#newcode373 src/isolate.cc:373: per_thread = AllocatePerIsolateThreadData(thread_id); On 2013/07/30 15:09:56, Sven Panne wrote: ...
7 years, 4 months ago (2013-07-30 16:50:52 UTC) #3
Benedikt Meurer
7 years, 4 months ago (2013-07-30 17:13:09 UTC) #4
Message was sent while issue was closed.
Committed patchset #5 manually as r15964 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698