Index: src/platform.h |
diff --git a/src/platform.h b/src/platform.h |
index a8500f0ddd8304e4ae5848251571b1789d249672..b7aca9da8a8ec21f36781c1a6439e36d6a1f3ad4 100644 |
--- a/src/platform.h |
+++ b/src/platform.h |
@@ -141,6 +141,14 @@ class TimezoneCache; |
class OS { |
public: |
+ // Initialize the OS class. |
+ // - random_seed: Used for the GetRandomMmapAddress() if non-zero. |
+ // - hard_abort: If true, OS::Abort() will crash instead of aborting. |
+ // - gc_fake_mmap: Name of the file for fake gc mmap used in ll_prof. |
+ static void Initialize(int64_t random_seed, |
+ bool hard_abort, |
+ const char* const gc_fake_mmap); |
+ |
// Returns the accumulated user time for thread. This routine |
// can be used for profiling. The implementation should |
// strive for high-precision timer resolution, preferable |
@@ -212,10 +220,6 @@ class OS { |
// Assign memory as a guard page so that access will cause an exception. |
static void Guard(void* address, const size_t size); |
- // Set a fixed random seed for the random number generator used for |
- // GetRandomMmapAddr. |
- static void SetRandomSeed(int64_t seed); |
- |
// Generate a random address to be used for hinting mmap(). |
static void* GetRandomMmapAddr(); |
@@ -306,6 +310,10 @@ class OS { |
private: |
static const int msPerSecond = 1000; |
+#if V8_OS_POSIX |
+ static const char* GetGCFakeMMapFile(); |
+#endif |
+ |
DISALLOW_IMPLICIT_CONSTRUCTORS(OS); |
}; |