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

Unified Diff: Source/wtf/AddressSpaceRandomization.h

Issue 343753004: Oilpan: Improve address space randomization for the Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move code to cpp file. Created 6 years, 6 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
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();
}

Powered by Google App Engine
This is Rietveld 408576698