Index: src/platform-win32.cc |
diff --git a/src/platform-win32.cc b/src/platform-win32.cc |
index 6e50c3e1e332ffa9656c46674db9054937efa6cd..292c24a3dace86c6500acbd6634536d0dea7ddb6 100644 |
--- a/src/platform-win32.cc |
+++ b/src/platform-win32.cc |
@@ -925,7 +925,7 @@ static void* RandomizedVirtualAlloc(size_t size, int action, int protection) { |
if (protection == PAGE_EXECUTE_READWRITE || protection == PAGE_NOACCESS) { |
// For exectutable pages try and randomize the allocation address |
for (size_t attempts = 0; base == NULL && attempts < 3; ++attempts) { |
- base = VirtualAlloc(OS::GetRandomAddr(), size, action, protection); |
+ base = VirtualAlloc(OS::GetRandomMmapAddr(), size, action, protection); |
} |
} |