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

Issue 6788023: Per-isolate v8::Locker and v8::Unlocker (Closed)

Created:
9 years, 8 months ago by Dmitry Lomov
Modified:
9 years, 7 months ago
Reviewers:
Vitaly Repeshko
CC:
Dmitry Lomov (no reviews), v8-dev
Visibility:
Public.

Description

This implements per-isolate locking and unlocking, including tests BUG= TEST= Committed: http://code.google.com/p/v8/source/detail?r=7734 Committed: http://code.google.com/p/v8/source/detail?r=7784 Committed: http://code.google.com/p/v8/source/detail?r=7797

Patch Set 1 #

Patch Set 2 : Reverting unneeded check #

Patch Set 3 : Initialization, lockers, tests #

Patch Set 4 : Rebased #

Patch Set 5 : Self-review + extra tests #

Patch Set 6 : New tests for IsLocker #

Total comments: 67

Patch Set 7 : Code review feedback #

Total comments: 20

Patch Set 8 : CR feedback #

Patch Set 9 : Fix for default isolate Locker/Unlocker #

Patch Set 10 : Fixing order of Entering/Exiting and Restoring/Archiving thread #

Total comments: 1

Patch Set 11 : Fixes for simulator (arm/mips) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+856 lines, -167 lines) Patch
M include/v8.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +35 lines, -24 lines 0 comments Download
M src/api.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -2 lines 0 comments Download
M src/api.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +4 lines, -5 lines 0 comments Download
M src/arm/simulator-arm.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +8 lines, -5 lines 0 comments Download
M src/arm/simulator-arm.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -12 lines 0 comments Download
M src/assembler.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -3 lines 0 comments Download
M src/execution.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M src/execution.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +10 lines, -9 lines 0 comments Download
M src/ia32/simulator-ia32.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -1 line 0 comments Download
M src/isolate.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +10 lines, -1 line 0 comments Download
M src/isolate.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +22 lines, -6 lines 0 comments Download
M src/mips/simulator-mips.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +7 lines, -5 lines 0 comments Download
M src/mips/simulator-mips.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -12 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -4 lines 0 comments Download
M src/top.cc View 1 2 3 4 5 6 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M src/v8threads.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +69 lines, -58 lines 0 comments Download
M src/x64/simulator-x64.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M test/cctest/SConscript View 1 2 9 10 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/cctest.gyp View 1 2 9 10 1 chunk +1 line, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +23 lines, -0 lines 0 comments Download
A test/cctest/test-lockers.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +605 lines, -0 lines 0 comments Download
M test/cctest/test-thread-termination.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +22 lines, -14 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Dmitry Lomov
This implements per-isolate Locker and Unlocker, and covers them with unit-tests.
9 years, 8 months ago (2011-04-13 00:22:45 UTC) #1
Dmitry Titov
Drive-by idea: http://codereview.chromium.org/6788023/diff/11001/include/v8.h File include/v8.h (right): http://codereview.chromium.org/6788023/diff/11001/include/v8.h#newcode3408 include/v8.h:3408: explicit Locker(Isolate* isolate); Consider: If it was: ...
9 years, 8 months ago (2011-04-13 00:45:10 UTC) #2
Dmitry Lomov
http://codereview.chromium.org/6788023/diff/11001/include/v8.h File include/v8.h (right): http://codereview.chromium.org/6788023/diff/11001/include/v8.h#newcode3408 include/v8.h:3408: explicit Locker(Isolate* isolate); Yes, this sounds reasonable to me ...
9 years, 8 months ago (2011-04-13 00:54:12 UTC) #3
Vitaly Repeshko
First round of comments. http://codereview.chromium.org/6788023/diff/11001/include/v8.h File include/v8.h (right): http://codereview.chromium.org/6788023/diff/11001/include/v8.h#newcode3316 include/v8.h:3316: * Multiple threads in V8 ...
9 years, 8 months ago (2011-04-15 00:29:39 UTC) #4
Dmitry Lomov
New patch set: 1) Addresses code review feedback 2) Moves PreInit back to under a ...
9 years, 8 months ago (2011-04-19 01:50:47 UTC) #5
Vitaly Repeshko
[+ Mads] LGTM with comments. I convinced myself we should keep locking/unlocking and entering/exiting an ...
9 years, 8 months ago (2011-04-21 21:15:27 UTC) #6
Dmitry Lomov
This additional patch fixes Locker and Unlocker properly enter and exit default isolate. This fixes ...
9 years, 7 months ago (2011-04-30 02:50:28 UTC) #7
Vitaly Repeshko
LGTM http://codereview.chromium.org/6788023/diff/24003/src/v8threads.cc File src/v8threads.cc (right): http://codereview.chromium.org/6788023/diff/24003/src/v8threads.cc#newcode132 src/v8threads.cc:132: isolate_->Enter(); Weird indent.
9 years, 7 months ago (2011-05-03 16:41:18 UTC) #8
Dmitry Lomov
Additional fixes for arm/mips. Pushing an isolate parameter through to the Simulator. (I have uploaded ...
9 years, 7 months ago (2011-05-05 18:37:33 UTC) #9
Vitaly Repeshko
9 years, 7 months ago (2011-05-05 18:41:29 UTC) #10
LGTM

Powered by Google App Engine
This is Rietveld 408576698