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

Issue 1041523002: Refactor Thread lifecycle interface, add Thread::Enter/ExitIsolate. (Closed)

Created:
5 years, 9 months ago by koda
Modified:
5 years, 8 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Prepares for multiple threads by further decoupling Thread from Isolate. - Replace Isolate::SetCurrent with more explicit Thread::Enter/ExitIsolate. - Lazily initialize Thread instances when entering an isolate, to avoid new API calls for embedders. R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=44835

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : bak6 #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Total comments: 12

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -65 lines) Patch
M runtime/include/dart_api.h View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M runtime/lib/isolate.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -5 lines 0 comments Download
M runtime/vm/benchmark_test.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/dart.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/dart_api_impl.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M runtime/vm/gc_sweeper.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/isolate.h View 1 2 3 4 5 6 7 8 chunks +20 lines, -7 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 4 5 6 6 chunks +4 lines, -30 lines 0 comments Download
M runtime/vm/native_api_impl.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/service_isolate.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/thread.h View 1 2 3 4 5 6 7 2 chunks +23 lines, -8 lines 0 comments Download
M runtime/vm/thread.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +60 lines, -0 lines 0 comments Download
M runtime/vm/thread_pool.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
koda
5 years, 8 months ago (2015-03-30 16:15:59 UTC) #2
siva
LGTM. I have one question regarding the EnterIsolate/ExitIsolate API Vs having just one function SetCurrentIsolate. ...
5 years, 8 months ago (2015-04-01 04:08:34 UTC) #3
koda
https://chromiumcodereview.appspot.com/1041523002/diff/200001/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://chromiumcodereview.appspot.com/1041523002/diff/200001/runtime/include/dart_api.h#newcode952 runtime/include/dart_api.h:952: * Requires there to be no current isolate. Multiple ...
5 years, 8 months ago (2015-04-01 16:05:59 UTC) #4
koda
5 years, 8 months ago (2015-04-01 17:48:26 UTC) #5
Message was sent while issue was closed.
Committed patchset #12 (id:220001) manually as r44835 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698