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

Unified Diff: src/platform.h

Issue 9372083: Randomize allocation addresses on windows. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 10 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 | src/platform-win32.cc » ('j') | src/platform-win32.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform.h
===================================================================
--- src/platform.h (revision 10785)
+++ src/platform.h (working copy)
@@ -183,7 +183,10 @@
static void Guard(void* address, const size_t size);
// Generate a random address to be used for hinting mmap().
+ // TODO(cdn) these should be rolled into the same function but but this
+ // patch needs to be easy to merge.
static void* GetRandomMmapAddr();
+ static void* GetRandomAddr();
// Get the Alignment guaranteed by Allocate().
static size_t AllocateAlignment();
« no previous file with comments | « no previous file | src/platform-win32.cc » ('j') | src/platform-win32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698