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

Issue 392933003: vm/observatory: Clean up script access (Closed)

Created:
6 years, 5 months ago by Michael Lippautz (Google)
Modified:
6 years, 5 months ago
Reviewers:
Cutch, hausner
CC:
reviews_dartlang.org, turnidge, Cutch, vm-dev_dartlang.org
Visibility:
Public.

Description

Patch Set 1 : #

Total comments: 5

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -138 lines) Patch
M runtime/bin/vmservice/client/deployed/web/index.html View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M runtime/bin/vmservice/client/deployed/web/index.html_bootstrap.dart.js View 1 2 3 4 chunks +9 lines, -3 lines 0 comments Download
M runtime/bin/vmservice/client/deployed/web/index_devtools.html View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M runtime/bin/vmservice/client/deployed/web/index_devtools.html_bootstrap.dart.js View 1 2 3 4 chunks +9 lines, -3 lines 0 comments Download
M runtime/bin/vmservice/client/deployed/web/packages/observatory/src/elements/instance_ref.html View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/vmservice/client/deployed/web/packages/observatory/src/elements/script_view.html View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/elements/instance_ref.html View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/vmservice/client/lib/src/elements/script_view.html View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/service/object.dart View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M runtime/vm/coverage.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/coverage.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/coverage_test.cc View 4 chunks +30 lines, -19 lines 0 comments Download
M runtime/vm/object.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 3 chunks +43 lines, -1 line 0 comments Download
M runtime/vm/report_test.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M runtime/vm/service.cc View 7 chunks +68 lines, -69 lines 0 comments Download
M runtime/vm/service_test.cc View 7 chunks +67 lines, -31 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Michael Lippautz (Google)
Assumption: Script objects may not be shared across libraries (which is the case as of ...
6 years, 5 months ago (2014-07-15 17:52:55 UTC) #1
hausner
My main concern is that this may result in a memory leak. See comment below. ...
6 years, 5 months ago (2014-07-15 20:34:03 UTC) #2
Michael Lippautz (Google)
https://codereview.chromium.org/392933003/diff/20001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/392933003/diff/20001/runtime/vm/object.cc#newcode8899 runtime/vm/object.cc:8899: if (!cached || loaded_scripts() == Array::null()) { On 2014/07/15 ...
6 years, 5 months ago (2014-07-15 21:20:56 UTC) #3
hausner
LGTM w/Q https://codereview.chromium.org/392933003/diff/40001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/392933003/diff/40001/runtime/vm/object.cc#newcode8931 runtime/vm/object.cc:8931: for (intptr_t i = 0; i < ...
6 years, 5 months ago (2014-07-15 21:38:18 UTC) #4
Cutch
https://codereview.chromium.org/392933003/diff/40001/runtime/bin/vmservice/client/lib/src/service/object.dart File runtime/bin/vmservice/client/lib/src/service/object.dart (right): https://codereview.chromium.org/392933003/diff/40001/runtime/bin/vmservice/client/lib/src/service/object.dart#newcode1371 runtime/bin/vmservice/client/lib/src/service/object.dart:1371: _parseTokenPosTable(map['tokenPosTable']); There should be a "if (mapIsRef) { return; ...
6 years, 5 months ago (2014-07-15 22:06:55 UTC) #5
Michael Lippautz (Google)
https://codereview.chromium.org/392933003/diff/40001/runtime/bin/vmservice/client/lib/src/service/object.dart File runtime/bin/vmservice/client/lib/src/service/object.dart (right): https://codereview.chromium.org/392933003/diff/40001/runtime/bin/vmservice/client/lib/src/service/object.dart#newcode1371 runtime/bin/vmservice/client/lib/src/service/object.dart:1371: _parseTokenPosTable(map['tokenPosTable']); On 2014/07/15 22:06:54, Cutch wrote: > There should ...
6 years, 5 months ago (2014-07-15 22:40:42 UTC) #6
Cutch
lgtm
6 years, 5 months ago (2014-07-15 22:41:52 UTC) #7
Michael Lippautz (Google)
6 years, 5 months ago (2014-07-15 22:55:30 UTC) #8
Message was sent while issue was closed.
Committed patchset #4 manually as r38264 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698