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

Issue 802543002: Move notification of isolate creation until after the ObjectStore is initialized. (Closed)

Created:
6 years ago by turnidge
Modified:
6 years ago
Reviewers:
Cutch
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Move notification of isolate creation until after the ObjectStore is initialized. The debugger_ is initialized in Dart::CreateIsolate but the object store is only valid after Dart::InitializeIsolate. I could have moved the initalization of debugger_ later, but then many of the debugger() accesses in the vm would need null checks. Instead I moved the isolate creation notification a bit. I was only able to see this problem when running a two isolate program with the --pause-isolates-on-start option. BUG= R=johnmccutchan@google.com Committed: https://code.google.com/p/dart/source/detail?r=42344

Patch Set 1 #

Total comments: 4

Patch Set 2 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -4 lines) Patch
M runtime/vm/dart.cc View 2 chunks +2 lines, -1 line 0 comments Download
M runtime/vm/debugger.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/debugger.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
turnidge
6 years ago (2014-12-11 20:34:53 UTC) #2
Cutch
lgtm with nits https://codereview.chromium.org/802543002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/802543002/diff/1/runtime/vm/object.cc#newcode18330 runtime/vm/object.cc:18330: (Isolate::Current()->object_store() != NULL && Parens around ...
6 years ago (2014-12-11 23:47:01 UTC) #3
turnidge
https://codereview.chromium.org/802543002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/802543002/diff/1/runtime/vm/object.cc#newcode18330 runtime/vm/object.cc:18330: (Isolate::Current()->object_store() != NULL && On 2014/12/11 23:47:01, Cutch wrote: ...
6 years ago (2014-12-12 17:48:29 UTC) #4
turnidge
6 years ago (2014-12-12 20:21:32 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as 42344 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698