Commit b07974cc authored by Dave Watson's avatar Dave Watson Committed by Facebook Github Bot

Use EXPEDITED by default

Summary:
MEMBARRIER_CMD_SHARED is too slow, use EXPEDITED (or the mprotect hack if kernel is too old).

hazptr has been using EXPEDITED for a while, the only other users are RCU and read_mostly_shared_ptr

Reviewed By: yfeldblum, osandov

Differential Revision: D7280190

fbshipit-source-id: 2a9aeab035f8996566b557d7f406686c361a37d7
parent 4989422c
......@@ -35,5 +35,5 @@ FOLLY_ALWAYS_INLINE void asymmetricLightBarrier() {
}
}
void asymmetricHeavyBarrier(AMBFlags flags = AMBFlags::NORMAL);
void asymmetricHeavyBarrier(AMBFlags flags = AMBFlags::EXPEDITED);
} // namespace folly
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