| Index: src/platform-cygwin.cc
|
| diff --git a/src/platform-cygwin.cc b/src/platform-cygwin.cc
|
| index 10525d934584608f8987a298cc9e6cfc5b82e290..97a05084cc63397aa5a20abf7a3219a8f0f8601c 100644
|
| --- a/src/platform-cygwin.cc
|
| +++ b/src/platform-cygwin.cc
|
| @@ -52,9 +52,6 @@ namespace v8 {
|
| namespace internal {
|
|
|
|
|
| -static Mutex* limit_mutex = NULL;
|
| -
|
| -
|
| const char* OS::LocalTimezone(double time) {
|
| if (std::isnan(time)) return "";
|
| time_t tv = static_cast<time_t>(floor(time/msPerSecond));
|
| @@ -76,31 +73,6 @@ double OS::LocalTimeOffset() {
|
| }
|
|
|
|
|
| -// We keep the lowest and highest addresses mapped as a quick way of
|
| -// determining that pointers are outside the heap (used mostly in assertions
|
| -// and verification). The estimate is conservative, i.e., not all addresses in
|
| -// 'allocated' space are actually allocated to our heap. The range is
|
| -// [lowest, highest), inclusive on the low and and exclusive on the high end.
|
| -static void* lowest_ever_allocated = reinterpret_cast<void*>(-1);
|
| -static void* highest_ever_allocated = reinterpret_cast<void*>(0);
|
| -
|
| -
|
| -static void UpdateAllocatedSpaceLimits(void* address, int size) {
|
| - ASSERT(limit_mutex != NULL);
|
| - LockGuard<Mutex> lock_guard(limit_mutex);
|
| -
|
| - lowest_ever_allocated = Min(lowest_ever_allocated, address);
|
| - highest_ever_allocated =
|
| - Max(highest_ever_allocated,
|
| - reinterpret_cast<void*>(reinterpret_cast<char*>(address) + size));
|
| -}
|
| -
|
| -
|
| -bool OS::IsOutsideAllocatedSpace(void* address) {
|
| - return address < lowest_ever_allocated || address >= highest_ever_allocated;
|
| -}
|
| -
|
| -
|
| void* OS::Allocate(const size_t requested,
|
| size_t* allocated,
|
| bool is_executable) {
|
| @@ -112,7 +84,6 @@ void* OS::Allocate(const size_t requested,
|
| return NULL;
|
| }
|
| *allocated = msize;
|
| - UpdateAllocatedSpaceLimits(mbase, msize);
|
| return mbase;
|
| }
|
|
|
| @@ -365,8 +336,6 @@ bool VirtualMemory::CommitRegion(void* base, size_t size, bool is_executable) {
|
| if (NULL == VirtualAlloc(base, size, MEM_COMMIT, prot)) {
|
| return false;
|
| }
|
| -
|
| - UpdateAllocatedSpaceLimits(base, static_cast<int>(size));
|
| return true;
|
| }
|
|
|
| @@ -406,12 +375,10 @@ void OS::SetUp() {
|
| // call this setup code within the same millisecond.
|
| uint64_t seed = static_cast<uint64_t>(TimeCurrentMillis());
|
| srandom(static_cast<unsigned int>(seed));
|
| - limit_mutex = new Mutex();
|
| }
|
|
|
|
|
| void OS::TearDown() {
|
| - delete limit_mutex;
|
| }
|
|
|
|
|
|
|