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

Issue 834233003: Fix for issue 21398 (only send "literal like" objects across isolates spawned using spawnURI (Closed)

Created:
5 years, 11 months ago by siva
Modified:
5 years, 11 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fix for issue 21398. Accept only 'literal-like' objects when sending messages to isolates spawned using spawnURI. Allow all objects for isolates spawned using spawnFunction. R=iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=42793

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 8

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+487 lines, -87 lines) Patch
M runtime/bin/dartutils.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M runtime/bin/io_service_patch.dart View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -4 lines 0 comments Download
M runtime/include/dart_native_api.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -1 line 0 comments Download
M runtime/lib/isolate.cc View 1 2 3 4 5 6 7 8 9 7 chunks +22 lines, -19 lines 0 comments Download
M runtime/lib/isolate_patch.dart View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M runtime/vm/benchmark_test.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/dart_api_message.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/isolate.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -0 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 4 5 6 7 8 9 9 chunks +45 lines, -8 lines 0 comments Download
M runtime/vm/json_stream.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -1 line 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -1 line 0 comments Download
M runtime/vm/raw_object.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 2 3 4 5 6 7 8 9 3 chunks +14 lines, -2 lines 0 comments Download
M runtime/vm/service.cc View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/snapshot.h View 1 2 3 4 5 6 7 8 9 7 chunks +13 lines, -5 lines 0 comments Download
M runtime/vm/snapshot.cc View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -3 lines 0 comments Download
M runtime/vm/snapshot_test.cc View 1 2 3 4 5 6 7 8 9 24 chunks +24 lines, -24 lines 0 comments Download
M samples/sample_extension/sample_extension.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/io/directory_impl.dart View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M tests/isolate/isolate.status View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -0 lines 0 comments Download
A tests/isolate/issue_21398_child_isolate.dart View 1 2 3 4 5 6 7 8 1 chunk +20 lines, -0 lines 0 comments Download
A tests/isolate/issue_21398_child_isolate11.dart View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
A tests/isolate/issue_21398_parent_isolate1_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +164 lines, -0 lines 0 comments Download
A tests/isolate/issue_21398_parent_isolate_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +65 lines, -0 lines 0 comments Download
M tests/lib/mirrors/invocation_fuzz_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
siva
5 years, 11 months ago (2015-01-07 00:23:12 UTC) #2
siva
synched to tot.
5 years, 11 months ago (2015-01-07 17:20:11 UTC) #3
Ivan Posva
As discussed offline we will need to be able to transfer send ports through isolates ...
5 years, 11 months ago (2015-01-08 23:53:59 UTC) #4
siva
replaced boolean field with origin id in the SendPort object as discussed. PTAL.
5 years, 11 months ago (2015-01-09 22:58:13 UTC) #5
Ivan Posva
LGTM with comments. -Ivan https://codereview.chromium.org/834233003/diff/140001/runtime/vm/service.cc File runtime/vm/service.cc (right): https://codereview.chromium.org/834233003/diff/140001/runtime/vm/service.cc#newcode276 runtime/vm/service.cc:276: const SendPort& send_port = SendPort::Handle(SendPort::New(port_id, ...
5 years, 11 months ago (2015-01-12 05:50:04 UTC) #6
siva
https://codereview.chromium.org/834233003/diff/140001/runtime/vm/service.cc File runtime/vm/service.cc (right): https://codereview.chromium.org/834233003/diff/140001/runtime/vm/service.cc#newcode276 runtime/vm/service.cc:276: const SendPort& send_port = SendPort::Handle(SendPort::New(port_id, false)); On 2015/01/12 05:50:04, ...
5 years, 11 months ago (2015-01-12 21:41:14 UTC) #7
siva
Updated isolate.status file to account test status for other runtimes.
5 years, 11 months ago (2015-01-12 22:51:40 UTC) #8
siva
5 years, 11 months ago (2015-01-12 23:14:45 UTC) #9
Message was sent while issue was closed.
Committed patchset #10 (id:180001) manually as r42793 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698