From bbe01cbe8602eeb73adbd150afd90c5c8080cdd5 Mon Sep 17 00:00:00 2001 From: SingleAccretion Date: Fri, 17 May 2024 22:28:58 +0300 Subject: [PATCH] Fix the definition of RhGetCurrentThunkContext --- src/coreclr/nativeaot/Runtime/unix/PalRedhawkUnix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/coreclr/nativeaot/Runtime/unix/PalRedhawkUnix.cpp b/src/coreclr/nativeaot/Runtime/unix/PalRedhawkUnix.cpp index 3d724f50829e..fa7f8ebe1b9e 100644 --- a/src/coreclr/nativeaot/Runtime/unix/PalRedhawkUnix.cpp +++ b/src/coreclr/nativeaot/Runtime/unix/PalRedhawkUnix.cpp @@ -489,10 +489,11 @@ EXTERN_C intptr_t* RhpGetThunkData() } #endif //FEATURE_EMULATED_TLS -EXTERN_C intptr_t RhGetCurrentThunkContext() +FCIMPL0(intptr_t, RhGetCurrentThunkContext) { return tls_thunkData; } +FCIMPLEND // Register the thread with OS to be notified when thread is about to be destroyed // It fails fast if a different thread was already registered.