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

Unified Diff: src/platform-posix.cc

Issue 9023007: Determine page size at runtime on posix platforms. (Closed)
Patch Set: Rebased on r10334. Created 8 years, 12 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform-posix.cc
diff --git a/src/platform-posix.cc b/src/platform-posix.cc
index a59d0bbdc3d61ffe556e42226fe03bd85db301a4..08417ff9bcf957cad4d30f74deccca6a271224b3 100644
--- a/src/platform-posix.cc
+++ b/src/platform-posix.cc
@@ -71,7 +71,8 @@ intptr_t OS::MaxVirtualMemory() {
intptr_t OS::CommitPageSize() {
- return 4096;
+ static intptr_t page_size = getpagesize();
+ return page_size;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698