From 3f4a8647af4cf2aa921ad3ff40347393b2e8176b Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Tue, 29 Jan 2019 11:14:49 -0800 Subject: [PATCH] ircd::db: Dressings for port interfaces. --- ircd/db_port.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ircd/db_port.cc b/ircd/db_port.cc index c525bf7eb..97f260c39 100644 --- a/ircd/db_port.cc +++ b/ircd/db_port.cc @@ -21,6 +21,7 @@ static_assert "than the one rocksdb has assumed space for." ); +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::Mutex::Mutex() noexcept { @@ -35,12 +36,14 @@ noexcept #endif } +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::Mutex::Mutex(bool adaptive) noexcept :Mutex{} { } +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::Mutex::~Mutex() noexcept { @@ -56,6 +59,7 @@ noexcept } void +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::Mutex::Lock() noexcept { @@ -75,6 +79,7 @@ noexcept } void +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::Mutex::Unlock() noexcept { @@ -95,6 +100,7 @@ noexcept } void +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::Mutex::AssertHeld() noexcept { @@ -115,6 +121,7 @@ static_assert "than the one rocksdb has assumed space for." ); +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::RWMutex::RWMutex() noexcept { @@ -129,6 +136,7 @@ noexcept #endif } +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::RWMutex::~RWMutex() noexcept { @@ -144,6 +152,7 @@ noexcept } void +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::RWMutex::ReadLock() noexcept { @@ -163,6 +172,7 @@ noexcept } void +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::RWMutex::WriteLock() noexcept { @@ -182,6 +192,7 @@ noexcept } void +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::RWMutex::ReadUnlock() noexcept { @@ -201,6 +212,7 @@ noexcept } void +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::RWMutex::WriteUnlock() noexcept { @@ -230,6 +242,7 @@ static_assert "than the one rocksdb has assumed space for." ); +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::CondVar::CondVar(Mutex *mu) noexcept :mu{mu} @@ -245,6 +258,7 @@ noexcept #endif } +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::CondVar::~CondVar() noexcept { @@ -260,6 +274,7 @@ noexcept } void +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::CondVar::Wait() noexcept { @@ -282,6 +297,7 @@ noexcept // Returns true if timeout occurred bool +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::CondVar::TimedWait(uint64_t abs_time_us) noexcept { @@ -304,6 +320,7 @@ noexcept } void +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::CondVar::Signal() noexcept { @@ -323,6 +340,7 @@ noexcept } void +__attribute__((externally_visible, no_icf, noinline)) rocksdb::port::CondVar::SignalAll() noexcept {