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

Unified Diff: runtime/vm/heap.h

Issue 474913004: - Account for number of pending tasks in old-space collections. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/heap.h
===================================================================
--- runtime/vm/heap.h (revision 39381)
+++ runtime/vm/heap.h (working copy)
@@ -62,6 +62,9 @@
~Heap();
+ Scavenger* new_space() { return new_space_; }
+ PageSpace* old_space() { return old_space_; }
siva 2014/08/20 17:21:22 const functions ?
Ivan Posva 2014/08/20 18:35:20 Done.
+
uword Allocate(intptr_t size, Space space) {
ASSERT(!read_only_);
switch (space) {
@@ -81,28 +84,6 @@
return 0;
}
- uword TryAllocate(
- intptr_t size,
- Space space,
- PageSpace::GrowthPolicy growth_policy = PageSpace::kControlGrowth) {
- ASSERT(!read_only_);
- switch (space) {
- case kNew:
- return new_space_->TryAllocate(size);
- case kOld:
- return old_space_->TryAllocate(size,
- HeapPage::kData,
- growth_policy);
- case kCode:
- return old_space_->TryAllocate(size,
- HeapPage::kExecutable,
- growth_policy);
- default:
- UNREACHABLE();
- }
- return 0;
- }
-
// Track external data.
void AllocateExternal(intptr_t size, Space space);
void FreeExternal(intptr_t size, Space space);
« no previous file with comments | « runtime/vm/freelist.cc ('k') | runtime/vm/isolate.cc » ('j') | runtime/vm/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698