Index: src/platform-openbsd.cc |
diff --git a/src/platform-openbsd.cc b/src/platform-openbsd.cc |
index a40df48d81ce312a4b56bc56ce4990b8d61af1e5..fbd07c62f8d43c8383468e2d143aea5b725a0591 100644 |
--- a/src/platform-openbsd.cc |
+++ b/src/platform-openbsd.cc |
@@ -100,11 +100,6 @@ static void* GetRandomMmapAddr() { |
} |
-void OS::PostSetUp() { |
- POSIXPostSetUp(); |
-} |
- |
- |
uint64_t OS::CpuFeaturesImpliedByPlatform() { |
return 0; |
} |
@@ -160,11 +155,6 @@ bool OS::IsOutsideAllocatedSpace(void* address) { |
} |
-size_t OS::AllocateAlignment() { |
- return sysconf(_SC_PAGESIZE); |
-} |
- |
- |
void* OS::Allocate(const size_t requested, |
size_t* allocated, |
bool is_executable) { |
@@ -183,36 +173,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) { |
- unsigned int ms = static_cast<unsigned int>(milliseconds); |
- usleep(1000 * ms); |
-} |
- |
- |
-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() { |
// Currently unsupported. |
} |