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

Issue 1299493007: Rework service extensions to be safe (Closed)

Created:
5 years, 4 months ago by Cutch
Modified:
5 years, 3 months ago
Reviewers:
turnidge, Ivan Posva
CC:
reviews_dartlang.org, turnidge, rmacnak, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Rework service extensions to be safe - When scheduling a service extension to be invoked, store the closure in an array held in the isolate. - At the tail of IsolateMessageHandler::HandleMessage, invoke all pending service extension closures. R=iposva@google.com, turnidge@google.com Committed: https://github.com/dart-lang/sdk/commit/7052bd6bed45b0f24b311562e1ae9b9d63554114

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 8

Patch Set 7 : #

Patch Set 8 : #

Total comments: 10

Patch Set 9 : #

Total comments: 4

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+408 lines, -72 lines) Patch
M runtime/lib/developer.cc View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download
M runtime/lib/developer.dart View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/observatory/tests/service/developer_extension_test.dart View 1 2 3 4 5 6 7 4 chunks +19 lines, -1 line 0 comments Download
M runtime/observatory/tests/service/service.status View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/dart_entry.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/dart_entry.cc View 1 1 chunk +14 lines, -0 lines 0 comments Download
M runtime/vm/isolate.h View 1 2 3 4 5 6 7 8 3 chunks +42 lines, -0 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 4 5 6 7 8 9 6 chunks +184 lines, -2 lines 0 comments Download
M runtime/vm/json_stream.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/service.h View 1 2 3 4 3 chunks +10 lines, -1 line 0 comments Download
M runtime/vm/service.cc View 1 2 3 4 5 6 7 8 3 chunks +39 lines, -19 lines 0 comments Download
M runtime/vm/symbols.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M sdk/lib/_internal/js_runtime/lib/developer_patch.dart View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M sdk/lib/developer/extension.dart View 1 2 3 4 5 6 7 8 9 2 chunks +59 lines, -47 lines 0 comments Download

Messages

Total messages: 13 (1 generated)
Cutch
5 years, 4 months ago (2015-08-20 01:50:37 UTC) #2
turnidge
lgtm w/ cosmetic comments. https://codereview.chromium.org/1299493007/diff/20001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/1299493007/diff/20001/runtime/vm/isolate.cc#newcode1873 runtime/vm/isolate.cc:1873: RawGrowableObjectArray* Isolate::PrunePendingExtensionCalls() { Maybe GetAndClearPendingExtensionCalls? ...
5 years, 4 months ago (2015-08-20 17:34:39 UTC) #3
Cutch
https://codereview.chromium.org/1299493007/diff/20001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/1299493007/diff/20001/runtime/vm/isolate.cc#newcode1873 runtime/vm/isolate.cc:1873: RawGrowableObjectArray* Isolate::PrunePendingExtensionCalls() { On 2015/08/20 17:34:39, turnidge wrote: > ...
5 years, 4 months ago (2015-08-20 18:09:37 UTC) #4
Ivan Posva
-Ivan https://codereview.chromium.org/1299493007/diff/40001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/1299493007/diff/40001/runtime/vm/isolate.cc#newcode499 runtime/vm/isolate.cc:499: success = ProcessUnhandledException(Error::Cast(result)); We should propagate errors to ...
5 years, 4 months ago (2015-08-20 20:46:05 UTC) #5
Cutch
PTAL https://codereview.chromium.org/1299493007/diff/40001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/1299493007/diff/40001/runtime/vm/isolate.cc#newcode499 runtime/vm/isolate.cc:499: success = ProcessUnhandledException(Error::Cast(result)); On 2015/08/20 20:46:05, Ivan Posva ...
5 years, 4 months ago (2015-08-21 14:18:56 UTC) #6
Ivan Posva
-Ivan https://codereview.chromium.org/1299493007/diff/100001/runtime/observatory/tests/service/developer_extension_test.dart File runtime/observatory/tests/service/developer_extension_test.dart (right): https://codereview.chromium.org/1299493007/diff/100001/runtime/observatory/tests/service/developer_extension_test.dart#newcode52 runtime/observatory/tests/service/developer_extension_test.dart:52: klajsdlkjfad Please add a comment that you did ...
5 years, 3 months ago (2015-08-26 04:47:00 UTC) #7
Cutch
https://codereview.chromium.org/1299493007/diff/100001/runtime/observatory/tests/service/developer_extension_test.dart File runtime/observatory/tests/service/developer_extension_test.dart (right): https://codereview.chromium.org/1299493007/diff/100001/runtime/observatory/tests/service/developer_extension_test.dart#newcode52 runtime/observatory/tests/service/developer_extension_test.dart:52: klajsdlkjfad On 2015/08/26 04:46:59, Ivan Posva wrote: > Please ...
5 years, 3 months ago (2015-08-26 14:28:01 UTC) #8
Ivan Posva
-Ivan https://codereview.chromium.org/1299493007/diff/140001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/1299493007/diff/140001/runtime/vm/isolate.cc#newcode1957 runtime/vm/isolate.cc:1957: calls ^= GrowableObjectArray::New(Heap::kOld); Why in old space? https://codereview.chromium.org/1299493007/diff/140001/runtime/vm/isolate.cc#newcode1962 ...
5 years, 3 months ago (2015-08-27 06:15:29 UTC) #9
Cutch
https://codereview.chromium.org/1299493007/diff/140001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/1299493007/diff/140001/runtime/vm/isolate.cc#newcode1957 runtime/vm/isolate.cc:1957: calls ^= GrowableObjectArray::New(Heap::kOld); On 2015/08/27 06:15:29, Ivan Posva wrote: ...
5 years, 3 months ago (2015-08-27 13:27:49 UTC) #10
Ivan Posva
LGTM with comment added. -Ivan https://codereview.chromium.org/1299493007/diff/140001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/1299493007/diff/140001/runtime/vm/isolate.cc#newcode1999 runtime/vm/isolate.cc:1999: RawInstance* Isolate::LookupExtensionHandler(const String& name) ...
5 years, 3 months ago (2015-08-27 18:12:26 UTC) #11
Cutch
https://codereview.chromium.org/1299493007/diff/140001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/1299493007/diff/140001/runtime/vm/isolate.cc#newcode1999 runtime/vm/isolate.cc:1999: RawInstance* Isolate::LookupExtensionHandler(const String& name) { On 2015/08/27 18:12:26, Ivan ...
5 years, 3 months ago (2015-08-27 18:23:29 UTC) #12
Cutch
5 years, 3 months ago (2015-08-27 18:23:44 UTC) #13
Message was sent while issue was closed.
Committed patchset #10 (id:180001) manually as
7052bd6bed45b0f24b311562e1ae9b9d63554114 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698