From 54403e21469195e100aabe873a63a10e2f4b40df Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sun, 10 Mar 2024 22:01:50 -0700 Subject: [PATCH] Disable assert in release Arguments and conditional doesn't get optimized out in release builds for the inline function call versus the define. Was showing up an annoying amount of time when testing. --- FEXCore/Source/Interface/Context/Context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FEXCore/Source/Interface/Context/Context.h b/FEXCore/Source/Interface/Context/Context.h index dbf961f25c..1887890d29 100644 --- a/FEXCore/Source/Interface/Context/Context.h +++ b/FEXCore/Source/Interface/Context/Context.h @@ -277,7 +277,7 @@ namespace FEXCore::Context { static void ThreadRemoveCodeEntryFromJit(FEXCore::Core::CpuStateFrame *Frame, uint64_t GuestRIP) { auto Thread = Frame->Thread; - LogMan::Throw::AFmt(Thread->ThreadManager.GetTID() == FHU::Syscalls::gettid(), "Must be called from owning thread {}, not {}", Thread->ThreadManager.GetTID(), FHU::Syscalls::gettid()); + LOGMAN_THROW_A_FMT(Thread->ThreadManager.GetTID() == FHU::Syscalls::gettid(), "Must be called from owning thread {}, not {}", Thread->ThreadManager.GetTID(), FHU::Syscalls::gettid()); auto lk = GuardSignalDeferringSection(static_cast(Thread->CTX)->CodeInvalidationMutex, Thread); ThreadRemoveCodeEntry(Thread, GuestRIP);