Commit Graph

303 Commits

Author SHA1 Message Date
Ryan Macnak 98a2e90d4f [vm] Combine internal and external allocation into one allocation limit.
Makes things a bit simpler and avoids the situation where a low external survival rate would trigger excessive GCs because the external allocation threshold would remain low.

Bug: https://github.com/dart-lang/sdk/issues/33637
Bug: https://github.com/flutter/flutter/issues/18519
Change-Id: I53b38bd41e6232eaab848c81b2a79f7ec73fab54
Reviewed-on: https://dart-review.googlesource.com/63503
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
2018-07-03 17:17:33 +00:00
Ryan Macnak 71e8b418bf [vm] Account for external promotions; include external allocations in idle GC trigger.
A new-space collection during AllocateExternal may promote enough external allocations to warrant an old-space collection.

Bug: https://github.com/dart-lang/sdk/issues/33314
Change-Id: Ie7855e506869535435dc76b61ad30e5f42eda4a2
Reviewed-on: https://dart-review.googlesource.com/63449
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2018-07-02 20:37:35 +00:00
Ryan Macnak 8da46d35f5 [vm] Move heap-related code to its own subdirectory (cf. compiler).
Remove some dead includes.

Change-Id: I31f3e739e5ee46dcbba5d6a2f091491b46402943
Reviewed-on: https://dart-review.googlesource.com/60146
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2018-06-20 00:39:49 +00:00