Parcourir la source

Fix futex_fatal_error -- issue #6931 (#6932)

EmployedRussian il y a 1 an
Parent
commit
5249f3df52
1 fichiers modifiés avec 2 ajouts et 7 suppressions
  1. 2 7
      pal/inc/cclock.hpp

+ 2 - 7
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: