mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-23 00:11:08 +00:00
12d7e946a1
The idiom CPU_GET_CLASS(cpu) is fairly extensively used in various threads and trips of ThreadSanitizer due to the fact it updates obj->class->object_cast_cache behind the scenes. As this is just a fast-path cache there is no need to lock updates. However to ensure defined C11 behaviour across threads we need to use the plain atomic_read/set primitives and keep the sanitizer happy. Backports commit b6b3ccfda015dcd5ab50f70c189ee5cc6c622e91 from qemu |
||
---|---|---|
.. | ||
container.c | ||
cpu.c | ||
Makefile.objs | ||
object.c | ||
qom-qobject.c |