Index: Source/wtf/AddressSpaceRandomization.h |
diff --git a/Source/wtf/text/StringStatics.h b/Source/wtf/AddressSpaceRandomization.h |
similarity index 85% |
copy from Source/wtf/text/StringStatics.h |
copy to Source/wtf/AddressSpaceRandomization.h |
index b241894681dce487446f70bdcc2bfe01be1f55bc..3bbecc9ed6db9665bf908a6539735757c7a83fa0 100644 |
--- a/Source/wtf/text/StringStatics.h |
+++ b/Source/wtf/AddressSpaceRandomization.h |
@@ -28,20 +28,17 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef StringStatics_h |
-#define StringStatics_h |
+#ifndef WTF_AddressSpaceRandomization_h |
+#define WTF_AddressSpaceRandomization_h |
#include "wtf/WTFExport.h" |
namespace WTF { |
-class StringStatics { |
-public: |
- WTF_EXPORT static void init(); |
- |
-private: |
- StringStatics(); |
-}; |
+// Calculates a random preferred mapping address. In calculating an |
+// address, we balance good ASLR against not fragmenting the address |
+// space too badly. |
+WTF_EXPORT void* getRandomPageBase(); |
} |