| Index: src/platform-win32.cc
|
| diff --git a/src/platform-win32.cc b/src/platform-win32.cc
|
| index 292c24a3dace86c6500acbd6634536d0dea7ddb6..80bcaf92afdde9355cf2cbb554e375fd623b2a7d 100644
|
| --- a/src/platform-win32.cc
|
| +++ b/src/platform-win32.cc
|
| @@ -892,7 +892,7 @@ size_t OS::AllocateAlignment() {
|
| }
|
|
|
|
|
| -void* OS::GetRandomMmapAddr() {
|
| +static void* GetRandomAddr() {
|
| Isolate* isolate = Isolate::UncheckedCurrent();
|
| // Note that the current isolate isn't set up in a call path via
|
| // CpuFeatures::Probe. We don't care about randomization in this case because
|
| @@ -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::GetRandomMmapAddr(), size, action, protection);
|
| + base = VirtualAlloc(GetRandomAddr(), size, action, protection);
|
| }
|
| }
|
|
|
|
|