Patch tracy for Windows on ARM

This commit is contained in:
2024-05-11 19:01:45 +03:00
parent 09e0754902
commit 563a45633f
2 changed files with 5 additions and 1 deletions

View File

@@ -781,7 +781,9 @@ rpmalloc_set_main_thread(void) {
static void
_rpmalloc_spin(void) {
#if defined(_MSC_VER)
#if defined(_MSC_VER) && defined(_M_ARM64)
__isb(_ARM64_BARRIER_SY);
#elif defined(_MSC_VER)
_mm_pause();
#elif defined(__x86_64__) || defined(__i386__)
__asm__ volatile("pause" ::: "memory");