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

Unified Diff: runtime/vm/pages.h

Issue 187113003: Track external allocated memory for weak persistent handles. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 9 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
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/pages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/pages.h
===================================================================
--- runtime/vm/pages.h (revision 33396)
+++ runtime/vm/pages.h (working copy)
@@ -188,6 +188,9 @@
intptr_t UsedInWords() const { return used_in_words_; }
intptr_t CapacityInWords() const { return capacity_in_words_; }
+ intptr_t ExternalInWords() const {
+ return external_in_words_;
+ }
bool Contains(uword addr) const;
bool Contains(uword addr, HeapPage::PageType type) const;
@@ -238,6 +241,9 @@
void PrintToJSONObject(JSONObject* object);
+ void AllocateExternal(intptr_t size);
+ void FreeExternal(intptr_t size);
+
private:
// Ids for time and data records in Heap::GCStats.
enum {
@@ -280,6 +286,7 @@
intptr_t max_capacity_in_words_;
intptr_t capacity_in_words_;
intptr_t used_in_words_;
+ intptr_t external_in_words_;
// Keep track whether a MarkSweep is currently running.
bool sweeping_;
« no previous file with comments | « runtime/vm/heap.cc ('k') | runtime/vm/pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698