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

Issue 1132323002: Add Service ID zones to service protocol (Closed)

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

Description

Add Service ID zones to service protocol - Add ServiceIdZone interface for getting temporary ids. - Add RingServiceIdZone which uses the isolate's object id ring. - Add GrowableServiceIdZone which uses a growable array. - Unit tests for ServiceIdZones. - JSONStream has a service id zone. - Default service id zone is ring with eager id allocation. - All service RPCs can include a _serviceIdZone parameter. - Value of _serviceIdZone can be Ring.NewId or Ring.ExistingId. - All ObjectIdRing usage in object.cc has been replaced with `jsobj.AddServiceId("id", *this);` - Add a policy for id reuse to ObjectIdRing::GetIdForObject - ObjectIdRing can dump its contents to JSON. - Add _dumpRingRequests RPC which dumps the isolate's ring. - _getCrashDump includes complete object id ring. R=turnidge@google.com Committed: https://code.google.com/p/dart/source/detail?r=45754

Patch Set 1 #

Patch Set 2 : #

Total comments: 37

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 8

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+377 lines, -99 lines) Patch
M runtime/observatory/lib/src/service/object.dart View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M runtime/vm/dart.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/isolate.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M runtime/vm/json_stream.h View 1 2 3 4 5 5 chunks +16 lines, -0 lines 0 comments Download
M runtime/vm/json_stream.cc View 1 2 3 4 5 3 chunks +10 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 22 chunks +29 lines, -66 lines 0 comments Download
M runtime/vm/object_id_ring.h View 1 2 4 chunks +13 lines, -1 line 0 comments Download
M runtime/vm/object_id_ring.cc View 1 2 3 4 5 7 chunks +90 lines, -10 lines 0 comments Download
M runtime/vm/object_id_ring_test.cc View 1 2 3 5 chunks +42 lines, -1 line 0 comments Download
M runtime/vm/service.h View 1 2 3 4 5 3 chunks +36 lines, -0 lines 0 comments Download
M runtime/vm/service.cc View 1 2 3 4 5 8 chunks +77 lines, -10 lines 0 comments Download
M runtime/vm/service/service.idl View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M runtime/vm/service/vmservice.dart View 1 2 3 4 2 chunks +18 lines, -3 lines 0 comments Download
M runtime/vm/service_isolate.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/service_test.cc View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Cutch
5 years, 7 months ago (2015-05-11 14:16:33 UTC) #2
turnidge
https://codereview.chromium.org/1132323002/diff/20001/runtime/vm/json_stream.h File runtime/vm/json_stream.h (right): https://codereview.chromium.org/1132323002/diff/20001/runtime/vm/json_stream.h#newcode139 runtime/vm/json_stream.h:139: RingServiceIdZone ring_service_id_zone_; Call this default_service_id_zone? Also, stray space before ...
5 years, 7 months ago (2015-05-11 19:48:45 UTC) #3
turnidge
https://codereview.chromium.org/1132323002/diff/20001/runtime/vm/json_stream.h File runtime/vm/json_stream.h (right): https://codereview.chromium.org/1132323002/diff/20001/runtime/vm/json_stream.h#newcode139 runtime/vm/json_stream.h:139: RingServiceIdZone ring_service_id_zone_; On 2015/05/11 19:48:45, turnidge wrote: > Call ...
5 years, 7 months ago (2015-05-11 20:01:04 UTC) #4
Cutch
PTAL https://codereview.chromium.org/1132323002/diff/20001/runtime/vm/json_stream.h File runtime/vm/json_stream.h (right): https://codereview.chromium.org/1132323002/diff/20001/runtime/vm/json_stream.h#newcode139 runtime/vm/json_stream.h:139: RingServiceIdZone ring_service_id_zone_; On 2015/05/11 20:01:04, turnidge wrote: > ...
5 years, 7 months ago (2015-05-12 14:59:58 UTC) #5
turnidge
https://codereview.chromium.org/1132323002/diff/80001/runtime/vm/json_stream.h File runtime/vm/json_stream.h (right): https://codereview.chromium.org/1132323002/diff/80001/runtime/vm/json_stream.h#newcode24 runtime/vm/json_stream.h:24: class RingIdZone; Is this forward declaration right? I see ...
5 years, 7 months ago (2015-05-12 20:08:01 UTC) #6
turnidge
lgtm
5 years, 7 months ago (2015-05-12 20:13:53 UTC) #7
turnidge
lgtm
5 years, 7 months ago (2015-05-12 20:13:55 UTC) #8
Cutch
https://codereview.chromium.org/1132323002/diff/80001/runtime/vm/json_stream.h File runtime/vm/json_stream.h (right): https://codereview.chromium.org/1132323002/diff/80001/runtime/vm/json_stream.h#newcode24 runtime/vm/json_stream.h:24: class RingIdZone; On 2015/05/12 20:08:01, turnidge wrote: > Is ...
5 years, 7 months ago (2015-05-12 23:32:59 UTC) #9
Cutch
5 years, 7 months ago (2015-05-12 23:48:33 UTC) #10
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as 45754 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698