From 5249f3df5252a7f3262487a07d0327df71fd92b3 Mon Sep 17 00:00:00 2001 From: EmployedRussian <39165328+EmployedRussian@users.noreply.github.com> Date: Wed, 17 Apr 2024 10:50:58 -0700 Subject: [PATCH] Fix futex_fatal_error -- issue #6931 (#6932) --- pal/inc/cclock.hpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pal/inc/cclock.hpp b/pal/inc/cclock.hpp index fe74235a618..1269e921226 100644 --- a/pal/inc/cclock.hpp +++ b/pal/inc/cclock.hpp @@ -9,14 +9,9 @@ #ifndef CC_PAL_INC_CCLOCK_H #define CC_PAL_INC_CCLOCK_H -#if defined(_M_ARM64) -#define CCLOCK_ALIGN __declspec(align(8)) -#else -#define CCLOCK_ALIGN -#endif - -class CCLOCK_ALIGN CCLock +class CCLock { + __declspec(align(sizeof(size_t))) char mutexPtr[64]; // keep mutex implementation opaque to consumer (PAL vs non-PAL) public: