Restricts cpu yield instructions a little.
authorRyan Pavlik <ryan.pavlik@collabora.com>
Sat, 8 May 2021 11:09:42 +0000 (12:09 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Sat, 8 May 2021 11:09:42 +0000 (12:09 +0100)
commit979cca2bc10304610544d102da7a233fdce994b2
tree03c2980d6a799e0820b7f69d34ff67db934b1e5b
parent194e71fc9a796391f88e9ec0ba5de6bb6cd96b94
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