summaryrefslogtreecommitdiff
path: root/buckets/apr_buckets_pool.c
diff options
context:
space:
mode:
authorylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2023-02-14 10:25:34 +0000
committerylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2023-02-14 10:25:34 +0000
commit24b1a6436f789ae16be4d7a2a7a68cb9325315e5 (patch)
tree3cbca57c0f6d67d86d4c24274c4b382de8452d10 /buckets/apr_buckets_pool.c
parent87c8321e094af6973c7c7404998b2b6792646954 (diff)
downloadlibapr-24b1a6436f789ae16be4d7a2a7a68cb9325315e5.tar.gz
atomic: No raw 64bit load/store on 32bit systems or anything but x86_64 or s390x.
Raw 64 bit load and store need two intructions on 32bit systems (tearing) so they are not atomic, and only x86(_64) and s390(x) have stong mempry ordering guarantees. Always use builtin functions for the cases where raw load/store don't work as expected. * atomic/unix/builtins.c, atomic/unix/builtins64.c: Use an accept-list rather than a reject-list to define WEAK_MEMORY_ORDERING. Test APR_SIZEOF_VOIDP < 8 to force usage of __sync builtins for _read{32,64} and _set{32,64} on 32bit systems when __atomic_{load,store} buitlins are not available. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1907637 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'buckets/apr_buckets_pool.c')
0 files changed, 0 insertions, 0 deletions