mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2026-08-09 04:14:15 +00:00
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 | ||