|
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
Total comments: 37
Total comments: 8
|
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
|
Total messages: 10 (1 generated)
|