Add flags to asymmetric mem barrier
Summary: Original sys_membarrier call supported an EXPEDITED flag, that was much faster than the current version, at some extra CPU cost. The basic idea was a normal one would be used in a background thread, while EXPEDITED would be useful inline in foreground threads. Add the flag here, and use the mprotect hack until sys_membarrier supports both. Reviewed By: magedm Differential Revision: D5292680 fbshipit-source-id: 30edf27514976991bbaa8e776a7138eb815ade36
Showing
Please register or sign in to comment