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

Issue 242123: Ensure V8 is initialized before locking and unlocking threads. (Closed)

Created:
11 years, 2 months ago by William Hesse
Modified:
9 years, 7 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Ensure V8 is initialized before locking and unlocking threads. Committed: http://code.google.com/p/v8/source/detail?r=3008

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M src/v8threads.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
William Hesse
11 years, 2 months ago (2009-10-02 10:43:40 UTC) #1
Erik Corry
LGTM with comments http://codereview.chromium.org/242123/diff/1/2 File src/v8threads.cc (right): http://codereview.chromium.org/242123/diff/1/2#newcode72 Line 72: // with deserialization, so we ...
11 years, 2 months ago (2009-10-02 11:12:07 UTC) #2
William Hesse
11 years, 2 months ago (2009-10-02 11:29:29 UTC) #3
http://codereview.chromium.org/242123/diff/1/2
File src/v8threads.cc (right):

http://codereview.chromium.org/242123/diff/1/2#newcode72
Line 72: // with deserialization, so we must ensure initialization occurs here.
On 2009/10/02 11:12:07, Erik Corry wrote:
> I'd like this to be moved into the if above so it doesn't waste time on
> recursive locks and it would also be good to put it in an 'if
> (!internal::V8::IsRunning()))' to further save time in the common case.

Done.

http://codereview.chromium.org/242123/diff/1/2#newcode72
Line 72: // with deserialization, so we must ensure initialization occurs here.
On 2009/10/02 11:12:07, Erik Corry wrote:
> Can we mention the 'number of roots' issue explicitly in the comment.  I think
> we're not the first to work this one out, but the last person didn't explain
> fully what the issue was.

Done.

Powered by Google App Engine
This is Rietveld 408576698