diff options
Diffstat (limited to 'src/3rdparty/v8/src/platform-openbsd.cc')
-rw-r--r-- | src/3rdparty/v8/src/platform-openbsd.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/3rdparty/v8/src/platform-openbsd.cc b/src/3rdparty/v8/src/platform-openbsd.cc index ba33a84..292927b 100644 --- a/src/3rdparty/v8/src/platform-openbsd.cc +++ b/src/3rdparty/v8/src/platform-openbsd.cc @@ -323,9 +323,6 @@ void OS::LogSharedLibraryAddresses() { } -static const char kGCFakeMmap[] = "/tmp/__v8_gc__"; - - void OS::SignalCodeMovingGC() { // Support for ll_prof.py. // @@ -336,7 +333,7 @@ void OS::SignalCodeMovingGC() { // by the kernel and allows us to synchronize V8 code log and the // kernel log. int size = sysconf(_SC_PAGESIZE); - FILE* f = fopen(kGCFakeMmap, "w+"); + FILE* f = fopen(FLAG_gc_fake_mmap, "w+"); void* addr = mmap(NULL, size, PROT_READ | PROT_EXEC, MAP_PRIVATE, fileno(f), 0); ASSERT(addr != MAP_FAILED); @@ -507,6 +504,12 @@ bool VirtualMemory::ReleaseRegion(void* base, size_t size) { } +bool VirtualMemory::HasLazyCommits() { + // TODO(alph): implement for the platform. + return false; +} + + class Thread::PlatformData : public Malloced { public: PlatformData() : thread_(kNoThread) {} |