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

Issue 6816038: Do not rely on uniquiness of pthread_t

Created:
9 years, 8 months ago by Dmitry Lomov
Modified:
9 years, 8 months ago
Reviewers:
dimich, Vitaly Repeshko
CC:
v8-dev
Visibility:
Public.

Description

Do not rely on uniquiness of pthread_t pthreads implementations are free to reuse pthread_t (thread id) after the thread has died. This change gets rid of ThreadHandle class and replaces it with v8-managed thread identifiers. BUG= TEST=

Patch Set 1 #

Patch Set 2 : ThreadRef -> ThreadId #

Total comments: 30

Patch Set 3 : Code review feedback #

Patch Set 4 : Minor formatting change #

Patch Set 5 : Win32 build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -424 lines) Patch
M src/api.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M src/isolate.h View 1 2 8 chunks +52 lines, -10 lines 0 comments Download
M src/isolate.cc View 1 2 8 chunks +26 lines, -22 lines 0 comments Download
M src/objects.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M src/platform.h View 1 2 3 chunks +6 lines, -36 lines 0 comments Download
M src/platform-cygwin.cc View 5 chunks +10 lines, -42 lines 0 comments Download
M src/platform-freebsd.cc View 5 chunks +5 lines, -14 lines 0 comments Download
M src/platform-linux.cc View 5 chunks +10 lines, -44 lines 0 comments Download
M src/platform-macos.cc View 5 chunks +10 lines, -45 lines 0 comments Download
M src/platform-nullos.cc View 4 chunks +5 lines, -35 lines 0 comments Download
M src/platform-openbsd.cc View 5 chunks +9 lines, -41 lines 0 comments Download
M src/platform-solaris.cc View 5 chunks +10 lines, -44 lines 0 comments Download
M src/platform-win32.cc View 1 2 3 4 5 chunks +3 lines, -53 lines 0 comments Download
M src/runtime.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M src/top.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M src/v8.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/v8threads.h View 1 2 4 chunks +10 lines, -9 lines 0 comments Download
M src/v8threads.cc View 1 2 8 chunks +18 lines, -18 lines 0 comments Download
M test/cctest/test-threads.cc View 1 2 3 2 chunks +53 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Dmitry Lomov
Fallout from my work on lockers, in separate patch to make code reviews simple. It ...
9 years, 8 months ago (2011-04-08 00:42:14 UTC) #1
Vitaly Repeshko
Dmitry, Thanks a lot for working on cleaning this up! I've got a few high-level ...
9 years, 8 months ago (2011-04-08 01:34:38 UTC) #2
Dmitry Lomov
Yes - sounds good - I shot for replacement of ThreadHandle as it was used ...
9 years, 8 months ago (2011-04-08 01:45:58 UTC) #3
Dmitry Lomov
Code review feedback addressed (use value class throughout; still leaking the integer ids though because ...
9 years, 8 months ago (2011-04-08 04:10:27 UTC) #4
Vitaly Repeshko
LGTM with a few style nits and one real comment. http://codereview.chromium.org/6816038/diff/5001/src/isolate.cc File src/isolate.cc (right): http://codereview.chromium.org/6816038/diff/5001/src/isolate.cc#newcode57 ...
9 years, 8 months ago (2011-04-11 19:28:52 UTC) #5
Dmitry Lomov
Thanks for the review - I'll fix the style issues. I have two comments on ...
9 years, 8 months ago (2011-04-11 20:08:35 UTC) #6
Dmitry Lomov
Style issues fixed + use atomic for highest_thread_id_ http://codereview.chromium.org/6816038/diff/5001/src/isolate.cc File src/isolate.cc (right): http://codereview.chromium.org/6816038/diff/5001/src/isolate.cc#newcode57 src/isolate.cc:57: Mutex* ...
9 years, 8 months ago (2011-04-11 21:41:14 UTC) #7
Vitaly Repeshko
Still LGTM
9 years, 8 months ago (2011-04-11 21:48:29 UTC) #8
Dmitry Lomov
9 years, 8 months ago (2011-04-12 00:07:01 UTC) #9
Fix for Win32 build - I need help landing this as I do not have presmissions.

Powered by Google App Engine
This is Rietveld 408576698