Commit b05a90dc authored by Michael Lee's avatar Michael Lee Committed by Facebook Github Bot

Remove the assertion that thread cache and private are enabled

Summary: With the mobile thread_local changes, these assertions are no longer correct.

Reviewed By: magedm

Differential Revision: D6915065

fbshipit-source-id: 42072ed638b3dca56cba65ca0cff5e4d7aef2cb3
parent 9656bacc
...@@ -970,7 +970,6 @@ FOLLY_ALWAYS_INLINE size_t hazptr_tc::count() { ...@@ -970,7 +970,6 @@ FOLLY_ALWAYS_INLINE size_t hazptr_tc::count() {
/** hazptr_tc free functions */ /** hazptr_tc free functions */
FOLLY_ALWAYS_INLINE hazptr_tc* hazptr_tc_tls() { FOLLY_ALWAYS_INLINE hazptr_tc* hazptr_tc_tls() {
assert(hazptr_tc_enabled());
HAZPTR_DEBUG_PRINT(tls_state_); HAZPTR_DEBUG_PRINT(tls_state_);
if (LIKELY(tls_state_ == TLS_ALIVE)) { if (LIKELY(tls_state_ == TLS_ALIVE)) {
HAZPTR_DEBUG_PRINT(tls_state_); HAZPTR_DEBUG_PRINT(tls_state_);
...@@ -983,7 +982,6 @@ FOLLY_ALWAYS_INLINE hazptr_tc* hazptr_tc_tls() { ...@@ -983,7 +982,6 @@ FOLLY_ALWAYS_INLINE hazptr_tc* hazptr_tc_tls() {
} }
inline void hazptr_tc_init() { inline void hazptr_tc_init() {
assert(hazptr_tc_enabled());
HAZPTR_DEBUG_PRINT(""); HAZPTR_DEBUG_PRINT("");
auto& tc = tls_tc_data_; auto& tc = tls_tc_data_;
HAZPTR_DEBUG_PRINT(&tc); HAZPTR_DEBUG_PRINT(&tc);
...@@ -1055,7 +1053,6 @@ inline void hazptr_priv::pushAllToDomain() { ...@@ -1055,7 +1053,6 @@ inline void hazptr_priv::pushAllToDomain() {
} }
inline void hazptr_priv_init() { inline void hazptr_priv_init() {
assert(hazptr_priv_enabled());
auto& priv = tls_priv_data_; auto& priv = tls_priv_data_;
HAZPTR_DEBUG_PRINT(&priv); HAZPTR_DEBUG_PRINT(&priv);
priv.head_ = nullptr; priv.head_ = nullptr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment