Index: src/platform.h |
=================================================================== |
--- src/platform.h (revision 5136) |
+++ src/platform.h (working copy) |
@@ -282,6 +282,18 @@ |
private: |
static const int msPerSecond = 1000; |
+ // The address range used to randomize RWX allocations in OS::Allocate |
+ // Try not to map pages into the default range that windows loads DLLs |
+ // Note: This does not guarantee RWX regions will be within the |
+ // range kAllocationRandomAddressMin to kAllocationRandomAddressMax |
+#ifdef V8_HOST_ARCH_64_BIT |
+ static const intptr_t kAllocationRandomAddressMin = 0x0000000080000000; |
+ static const intptr_t kAllocationRandomAddressMax = 0x000004FFFFFFFFFF; |
+#else |
+ static const intptr_t kAllocationRandomAddressMin = 0x04000000; |
+ static const intptr_t kAllocationRandomAddressMax = 0x4FFFFFFF; |
+#endif |
+ |
DISALLOW_IMPLICIT_CONSTRUCTORS(OS); |
}; |