Index: src/platform-macos.cc |
diff --git a/src/platform-macos.cc b/src/platform-macos.cc |
index 097691be07b01db92e0d1d4a581ced98be366521..30e90bb6144a03b6852c32e9db80d88ecd933429 100644 |
--- a/src/platform-macos.cc |
+++ b/src/platform-macos.cc |
@@ -96,11 +96,6 @@ double ceiling(double x) { |
static Mutex* limit_mutex = NULL; |
-void OS::PostSetUp() { |
- POSIXPostSetUp(); |
-} |
- |
- |
// 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 |
@@ -126,11 +121,6 @@ bool OS::IsOutsideAllocatedSpace(void* address) { |
} |
-size_t OS::AllocateAlignment() { |
- return getpagesize(); |
-} |
- |
- |
// Constants used for mmap. |
// kMmapFd is used to pass vm_alloc flags to tag the region with the user |
// defined tag 255 This helps identify V8-allocated regions in memory analysis |
@@ -160,35 +150,6 @@ void* OS::Allocate(const size_t requested, |
} |
-void OS::Free(void* address, const size_t size) { |
- // TODO(1240712): munmap has a return value which is ignored here. |
- int result = munmap(address, size); |
- USE(result); |
- ASSERT(result == 0); |
-} |
- |
- |
-void OS::Sleep(int milliseconds) { |
- usleep(1000 * milliseconds); |
-} |
- |
- |
-int OS::NumberOfCores() { |
- return sysconf(_SC_NPROCESSORS_ONLN); |
-} |
- |
- |
-void OS::Abort() { |
- // Redirect to std abort to signal abnormal program termination |
- abort(); |
-} |
- |
- |
-void OS::DebugBreak() { |
- asm("int $3"); |
-} |
- |
- |
void OS::DumpBacktrace() { |
// If weak link to execinfo lib has failed, ie because we are on 10.4, abort. |
if (backtrace == NULL) return; |