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

Unified Diff: src/base/platform/platform.h

Issue 2299753002: Made zone segments aligned in memory and included a pointer to the zone in the header. Larger objec…
Patch Set: Added a zone segment pool for small segments to avoid frequent sys calls 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/base/accounting-allocator.cc ('k') | src/base/platform/platform-aix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/base/platform/platform.h
diff --git a/src/base/platform/platform.h b/src/base/platform/platform.h
index d3b6c9c1cf3d758276ccc39c50a20b51fc9f9f98..4f4d6070ea399459db41d0941430b1259fd67eca 100644
--- a/src/base/platform/platform.h
+++ b/src/base/platform/platform.h
@@ -308,7 +308,7 @@ class VirtualMemory {
~VirtualMemory();
// Returns whether the memory has been reserved.
- bool IsReserved();
+ bool IsReserved() const;
// Initialize or resets an embedded VirtualMemory object.
void Reset();
@@ -317,7 +317,7 @@ class VirtualMemory {
// If the memory was reserved with an alignment, this address is not
// necessarily aligned. The user might need to round it up to a multiple of
// the alignment to get the start of the aligned block.
- void* address() {
+ void* address() const {
DCHECK(IsReserved());
return address_;
}
@@ -326,7 +326,7 @@ class VirtualMemory {
// meaningful when IsReserved() returns true.
// If the memory was reserved with an alignment, this size may be larger
// than the requested size.
- size_t size() { return size_; }
+ size_t size() const { return size_; }
// Commits real memory. Returns whether the operation succeeded.
bool Commit(void* address, size_t size, bool is_executable);
« no previous file with comments | « src/base/accounting-allocator.cc ('k') | src/base/platform/platform-aix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698