summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorJohn Szakmeister <john@szakmeister.net>2016-11-23 20:32:35 (GMT)
committerJohn Szakmeister <john@szakmeister.net>2016-11-23 20:32:35 (GMT)
commiteb29d7ec0e2c4994e10ec40d42265a86e569500c (patch)
tree469e9f390c2dd73a867b8c65c2648856f4cdbac2 /m4
parent32127949a3045330b8058bbf474e619e1bf2f05f (diff)
downloadjemalloc-eb29d7ec0e2c4994e10ec40d42265a86e569500c.zip
jemalloc-eb29d7ec0e2c4994e10ec40d42265a86e569500c.tar.gz
jemalloc-eb29d7ec0e2c4994e10ec40d42265a86e569500c.tar.bz2
Implement a more reliable detection scheme for os_unfair_lock.
The core issue here is the weak linking of the symbol, and in certain environments--for instance, using the latest Xcode (8.1) with the latest SDK (10.12)--os_unfair_lock may resolve even though you're compiling on a host that doesn't support it (10.11). We can use the availability macros to circumvent this problem, and detect that we're not compiling for a target that is going to support them and error out at compile time. The other alternative is to do a runtime check, but that presents issues for cross-compiling.
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions