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

Issue 584023004: Service isolate rework (Closed)

Created:
6 years, 3 months ago by Cutch
Modified:
5 years, 11 months ago
Reviewers:
siva, Ivan Posva
CC:
reviews_dartlang.org, turnidge, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

* Create vm-service isolate at Dart_Initialize time. * Remove Service create callback. * Simplify creation of service isolate. * Creation is done on thread pool. * Use vm-service isolate for loading in standalone embedder. * Remove import of dart:io from builtin library. performance changes: no service isolate: $ ./tools/test.py -m release Test configuration: none_vm_release_ia32 [01:27 | 100% | +12363 | - 0] $ ./tools/test.py -m release Test configuration: none_vm_release_ia32 [01:27 | 100% | +12363 | - 0] always start service isolate (as a thread pool task): $ ./tools/test.py -m release Test configuration: none_vm_release_ia32 [01:45 | 100% | +12363 | - 0] $ ./tools/test.py -m release Test configuration: none_vm_release_ia32 [01:44 | 100% | +12363 | - 0] service does I/O (calls to Dart_LoadScript block until service is running): $ ./tools/test.py -m release Test configuration: none_vm_release_ia32 [01:55 | 100% | +12363 | - 0] $ ./tools/test.py -m release Test configuration: none_vm_release_ia32 [01:55 | 100% | +12363 | - 0] R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=43202

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Total comments: 16

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Patch Set 19 : #

Total comments: 6

Patch Set 20 : #

Patch Set 21 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1143 lines, -523 lines) Patch
M runtime/bin/bin.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +118 lines, -3 lines 0 comments Download
M runtime/bin/builtin.h View 1 2 3 4 5 6 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M runtime/bin/builtin.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/bin/builtin.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 9 chunks +124 lines, -137 lines 0 comments Download
A runtime/bin/builtin_common.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +37 lines, -0 lines 0 comments Download
M runtime/bin/builtin_impl_sources.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/builtin_natives.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/builtin_nolib.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/dartutils.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +7 lines, -0 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +119 lines, -60 lines 0 comments Download
M runtime/bin/gen_snapshot.cc View 1 chunk +1 line, -2 lines 0 comments Download
M runtime/bin/io_impl_sources.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +14 lines, -1 line 0 comments Download
M runtime/bin/main.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +28 lines, -77 lines 0 comments Download
M runtime/bin/platform.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/bin/platform_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/bin/platform_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/bin/platform_macos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/bin/platform_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/bin/resources_sources.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/run_vm_tests.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/bin/secure_socket.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/bin/secure_socket_unsupported.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +10 lines, -0 lines 0 comments Download
D runtime/bin/vmservice.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -17 lines 0 comments Download
A runtime/bin/vmservice/loader.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +60 lines, -0 lines 0 comments Download
M runtime/bin/vmservice/resources.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/vmservice/server.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +8 lines, -1 line 0 comments Download
M runtime/bin/vmservice/vmservice_io.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +16 lines, -4 lines 0 comments Download
A runtime/bin/vmservice_dartium.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +38 lines, -0 lines 0 comments Download
A runtime/bin/vmservice_dartium.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +103 lines, -0 lines 0 comments Download
M runtime/bin/vmservice_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +21 lines, -7 lines 0 comments Download
M runtime/bin/vmservice_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +74 lines, -57 lines 0 comments Download
M runtime/include/dart_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +12 lines, -44 lines 0 comments Download
M runtime/lib/isolate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +6 lines, -2 lines 0 comments Download
M runtime/tools/gyp/runtime-configurations.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/class_finalizer.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/class_table.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/vm/dart.h View 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/dart.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +8 lines, -4 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +12 lines, -8 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -1 line 0 comments Download
M runtime/vm/debugger.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +8 lines, -3 lines 0 comments Download
M runtime/vm/isolate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +0 lines, -8 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +6 lines, -3 lines 0 comments Download
M runtime/vm/service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +23 lines, -1 line 0 comments Download
M runtime/vm/service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 11 chunks +225 lines, -71 lines 0 comments Download
M runtime/vm/service/vmservice.dart View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/unit_test.h View 1 2 3 4 5 6 2 chunks +8 lines, -6 lines 0 comments Download
M tests/standalone/vmservice/test_helper.dart View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 8 (1 generated)
Cutch
https://codereview.chromium.org/584023004/diff/1/runtime/bin/vmservice/server.dart File runtime/bin/vmservice/server.dart (right): https://codereview.chromium.org/584023004/diff/1/runtime/bin/vmservice/server.dart#newcode167 runtime/bin/vmservice/server.dart:167: print('started'); This never happens when I run: ./out/DebugIA32/dart --package-root=out/DebugIA32/packages ...
6 years, 3 months ago (2014-09-19 21:25:59 UTC) #1
Cutch
This is ready. PTAL.
5 years, 11 months ago (2015-01-15 17:47:50 UTC) #3
siva
https://codereview.chromium.org/584023004/diff/280001/runtime/bin/builtin.dart File runtime/bin/builtin.dart (right): https://codereview.chromium.org/584023004/diff/280001/runtime/bin/builtin.dart#newcode43 runtime/bin/builtin.dart:43: _getCurrentDirectoryPath() native "Directory_Current"; see comment below about these native ...
5 years, 11 months ago (2015-01-22 22:39:31 UTC) #4
Cutch
https://codereview.chromium.org/584023004/diff/280001/runtime/bin/builtin.dart File runtime/bin/builtin.dart (right): https://codereview.chromium.org/584023004/diff/280001/runtime/bin/builtin.dart#newcode43 runtime/bin/builtin.dart:43: _getCurrentDirectoryPath() native "Directory_Current"; On 2015/01/22 22:39:31, siva wrote: > ...
5 years, 11 months ago (2015-01-26 18:59:31 UTC) #5
siva
LGTM with one comment. https://codereview.chromium.org/584023004/diff/360001/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (right): https://codereview.chromium.org/584023004/diff/360001/runtime/bin/dartutils.cc#newcode483 runtime/bin/dartutils.cc:483: Builtin::SetLoadPort(load_port); Maybe return an error ...
5 years, 11 months ago (2015-01-27 19:12:46 UTC) #6
Cutch
https://codereview.chromium.org/584023004/diff/360001/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (right): https://codereview.chromium.org/584023004/diff/360001/runtime/bin/dartutils.cc#newcode483 runtime/bin/dartutils.cc:483: Builtin::SetLoadPort(load_port); On 2015/01/27 19:12:46, siva wrote: > Maybe return ...
5 years, 11 months ago (2015-01-27 19:31:00 UTC) #7
Cutch
5 years, 11 months ago (2015-01-27 19:46:28 UTC) #8
Message was sent while issue was closed.
Committed patchset #21 (id:400001) manually as 43202 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698