Restricts cpu yield instructions a little.
authorRyan Pavlik <ryan.pavlik@collabora.com>
Thu, 11 Feb 2021 21:06:33 +0000 (21:06 +0000)
committerRyan Pavlik <ryan@ryanpavlik.com>
Thu, 11 Feb 2021 21:06:33 +0000 (21:06 +0000)
commit0ed1126f7cb88ff06991ac4ec3f0fd0389e3118e
treee21a44ac4992ef2e18844332a22a2b622cb5895e
parentf77a5404fe94c40600f210cf06117588232449a5
Restricts cpu yield instructions a little.

Forwarded: https://github.com/microsoft/mimalloc/pull/350
Last-Update: 2021-02-11
Applied-Upstream: 3.0.0, https://github.com/solvespace/solvespace/commit/cdeb6c90fb753a2b0f6d033affedbcceab046758

adding clobber for ARM and preventing older 32 bits chips not supporting this instruction.

Backport of https://github.com/microsoft/mimalloc/commit/33a10b48605f8bb419487a03125815ad6ee00a70

Enhanced via https://github.com/mr-c/misc/wiki/pause-techniques-on-many-architectures

Gbp-Pq: Name 10_mimalloc_restrict_cpu_yield.patch
extlib/mimalloc/include/mimalloc-atomic.h