Add atomic(9) implementations of atomic operations.

Add atomic(9) implementations of atomic operations.  These are used on
FreeBSD for non-x86 architectures.
This commit is contained in:
Jason Evans
2012-04-17 13:17:54 -07:00
parent 45f208e112
commit b57d3ec571
4 changed files with 72 additions and 6 deletions

View File

@@ -161,6 +161,10 @@ static const bool config_ivsalloc =
#endif
;
#ifdef JEMALLOC_ATOMIC9
#include <machine/atomic.h>
#endif
#if (defined(JEMALLOC_OSATOMIC) || defined(JEMALLOC_OSSPIN))
#include <libkern/OSAtomic.h>
#endif