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

Issue 10748006: Disable heap growth during weak handle processing unit test in order to avoid triggering of old spa… (Closed)

Created:
8 years, 5 months ago by siva
Modified:
8 years, 5 months ago
Reviewers:
cshapiro
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Invoke 'Scavenge' in the weak handle processing unit tests and not 'CollectGarbage' in order to avoid triggering of old space mark sweep in certain situations. Committed: https://code.google.com/p/dart/source/detail?r=9535

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -34 lines) Patch
M vm/dart_api_impl_test.cc View 1 2 3 4 5 17 chunks +43 lines, -34 lines 0 comments Download
M vm/heap.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
siva
8 years, 5 months ago (2012-07-09 19:44:20 UTC) #1
cshapiro
Growth control should be off until it is explicitly enabled. Is there anyway we can ...
8 years, 5 months ago (2012-07-09 20:15:27 UTC) #2
siva
Not sure if it is a good idea to turn off growth control on all ...
8 years, 5 months ago (2012-07-09 20:44:38 UTC) #3
siva
8 years, 5 months ago (2012-07-09 21:37:46 UTC) #4
cshapiro
https://chromiumcodereview.appspot.com/10748006/diff/1005/vm/dart_api_impl_test.cc File vm/dart_api_impl_test.cc (right): https://chromiumcodereview.appspot.com/10748006/diff/1005/vm/dart_api_impl_test.cc#newcode1310 vm/dart_api_impl_test.cc:1310: // create an object in new space. Presumably the ...
8 years, 5 months ago (2012-07-10 21:15:38 UTC) #5
siva
Addressed comments. PTAL. https://chromiumcodereview.appspot.com/10748006/diff/1005/vm/dart_api_impl_test.cc File vm/dart_api_impl_test.cc (right): https://chromiumcodereview.appspot.com/10748006/diff/1005/vm/dart_api_impl_test.cc#newcode1310 vm/dart_api_impl_test.cc:1310: // create an object in new ...
8 years, 5 months ago (2012-07-10 21:27:15 UTC) #6
cshapiro
lgtm https://chromiumcodereview.appspot.com/10748006/diff/18001/vm/dart_api_impl_test.cc File vm/dart_api_impl_test.cc (right): https://chromiumcodereview.appspot.com/10748006/diff/18001/vm/dart_api_impl_test.cc#newcode1299 vm/dart_api_impl_test.cc:1299: // The normal call to Collectgarbage(heap::kNew) could potentially ...
8 years, 5 months ago (2012-07-10 22:16:43 UTC) #7
siva
8 years, 5 months ago (2012-07-10 22:57:50 UTC) #8
https://chromiumcodereview.appspot.com/10748006/diff/18001/vm/dart_api_impl_t...
File vm/dart_api_impl_test.cc (right):

https://chromiumcodereview.appspot.com/10748006/diff/18001/vm/dart_api_impl_t...
vm/dart_api_impl_test.cc:1299: // The normal call to Collectgarbage(heap::kNew)
could potentially trigger
On 2012/07/10 22:16:43, cshapiro wrote:
> More shift key
> 
>   CollectGarbage(Heap::kNew)
> ---------^       ^
> -----------------|

Done.

https://chromiumcodereview.appspot.com/10748006/diff/18001/vm/dart_api_impl_t...
vm/dart_api_impl_test.cc:1304: static void CollectNewGen(Heap::ApiCallbacks
api_callbacks) {
On 2012/07/10 22:16:43, cshapiro wrote:
> Not a big deal, but CollectNewSpace is probably a better name since we
> internally refer to the partitions as spaces rather than generations.

Done.

Powered by Google App Engine
This is Rietveld 408576698