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

Issue 187113003: Track external allocated memory for weak persistent handles. (Closed)

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

Description

Track external allocated memory for weak persistent handles. The amount of external allocation is tracked per generation and informs GC policy. BUG=dart:11471 R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=33467

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 10

Patch Set 6 : #

Total comments: 18

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 2

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -56 lines) Patch
M runtime/bin/io_buffer.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M runtime/include/dart_api.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +13 lines, -5 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 4 5 6 7 8 7 chunks +8 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 3 4 5 6 13 chunks +134 lines, -23 lines 0 comments Download
M runtime/vm/dart_api_state.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +56 lines, -14 lines 0 comments Download
M runtime/vm/gc_marker.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -3 lines 0 comments Download
M runtime/vm/heap.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -1 line 0 comments Download
M runtime/vm/heap.cc View 1 2 3 4 5 6 2 chunks +21 lines, -0 lines 0 comments Download
M runtime/vm/pages.h View 1 2 3 4 5 6 3 chunks +7 lines, -0 lines 0 comments Download
M runtime/vm/pages.cc View 1 2 3 4 5 6 4 chunks +21 lines, -4 lines 0 comments Download
M runtime/vm/scavenger.h View 1 2 3 4 5 6 4 chunks +16 lines, -0 lines 0 comments Download
M runtime/vm/scavenger.cc View 1 2 3 4 5 6 7 8 9 5 chunks +30 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
koda
6 years, 9 months ago (2014-03-05 16:11:10 UTC) #1
koda
I suspect there are more clients that will need to be updated with the new ...
6 years, 9 months ago (2014-03-05 16:17:51 UTC) #2
Ivan Posva
First set of comments. -Ivan https://codereview.chromium.org/187113003/diff/30013/runtime/vm/dart_api_state.h File runtime/vm/dart_api_state.h (right): https://codereview.chromium.org/187113003/diff/30013/runtime/vm/dart_api_state.h#newcode202 runtime/vm/dart_api_state.h:202: void InitializeExternalAllocationSize(intptr_t size, Heap* ...
6 years, 9 months ago (2014-03-05 21:21:23 UTC) #3
koda
PTAL https://codereview.chromium.org/187113003/diff/30013/runtime/vm/dart_api_state.h File runtime/vm/dart_api_state.h (right): https://codereview.chromium.org/187113003/diff/30013/runtime/vm/dart_api_state.h#newcode202 runtime/vm/dart_api_state.h:202: void InitializeExternalAllocationSize(intptr_t size, Heap* heap) { On 2014/03/05 ...
6 years, 9 months ago (2014-03-05 21:52:08 UTC) #4
siva
https://codereview.chromium.org/187113003/diff/90001/runtime/vm/dart_api_impl_test.cc File runtime/vm/dart_api_impl_test.cc (right): https://codereview.chromium.org/187113003/diff/90001/runtime/vm/dart_api_impl_test.cc#newcode2137 runtime/vm/dart_api_impl_test.cc:2137: weak1 = Dart_NewWeakPersistentHandle(obj, NULL, 1024, NULL); could we have ...
6 years, 9 months ago (2014-03-06 17:17:39 UTC) #5
Ivan Posva
-Ivan https://codereview.chromium.org/187113003/diff/90001/runtime/vm/dart_api_state.h File runtime/vm/dart_api_state.h (right): https://codereview.chromium.org/187113003/diff/90001/runtime/vm/dart_api_state.h#newcode202 runtime/vm/dart_api_state.h:202: void SetExternalAllocationSize(intptr_t size, Heap* heap) { SetExternalSize() to ...
6 years, 9 months ago (2014-03-06 21:59:33 UTC) #6
koda
Updated and merged. Also added a clarification to the API comment regarding the semantics of ...
6 years, 9 months ago (2014-03-06 22:55:07 UTC) #7
siva
LGTM. We will have to make a corresponding change to dartium to ensure the build ...
6 years, 9 months ago (2014-03-07 19:53:03 UTC) #8
koda
Should I add the Dartium change to this CL? https://codereview.chromium.org/187113003/diff/170001/runtime/vm/dart_api_state.h File runtime/vm/dart_api_state.h (right): https://codereview.chromium.org/187113003/diff/170001/runtime/vm/dart_api_state.h#newcode257 runtime/vm/dart_api_state.h:257: ...
6 years, 9 months ago (2014-03-07 20:46:53 UTC) #9
koda
6 years, 9 months ago (2014-03-07 23:53:40 UTC) #10
Message was sent while issue was closed.
Committed patchset #12 manually as r33467 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698