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

Unified Diff: src/heap/heap.h

Issue 2371133002: [heap] Make committed counters on space size_t (Closed)
Patch Set: rebase Created 4 years, 3 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 | « src/extensions/statistics-extension.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.h
diff --git a/src/heap/heap.h b/src/heap/heap.h
index 60c2464f5a74e1386d6fee87927b1d12c043dd2d..72ca0ad7a0cfebc51e9329bc06e750796b36761e 100644
--- a/src/heap/heap.h
+++ b/src/heap/heap.h
@@ -1295,19 +1295,19 @@ class Heap {
intptr_t OldGenerationCapacity();
// Returns the amount of memory currently committed for the heap.
- intptr_t CommittedMemory();
+ size_t CommittedMemory();
// Returns the amount of memory currently committed for the old space.
- intptr_t CommittedOldGenerationMemory();
+ size_t CommittedOldGenerationMemory();
// Returns the amount of executable memory currently committed for the heap.
- intptr_t CommittedMemoryExecutable();
+ size_t CommittedMemoryExecutable();
// Returns the amount of phyical memory currently committed for the heap.
size_t CommittedPhysicalMemory();
// Returns the maximum amount of memory ever committed for the heap.
- intptr_t MaximumCommittedMemory() { return maximum_committed_; }
+ size_t MaximumCommittedMemory() { return maximum_committed_; }
// Updates the maximum committed memory for the heap. Should be called
// whenever a space grows.
@@ -2088,7 +2088,7 @@ class Heap {
intptr_t initial_old_generation_size_;
bool old_generation_size_configured_;
intptr_t max_executable_size_;
- intptr_t maximum_committed_;
+ size_t maximum_committed_;
// For keeping track of how much data has survived
// scavenge since last new space expansion.
« no previous file with comments | « src/extensions/statistics-extension.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698