Forráskód Böngészése

Fix futex_fatal_error -- issue #6931 (#6932)

EmployedRussian 1 éve
szülő
commit
5249f3df52
1 módosított fájl, 2 hozzáadás és 7 törlés
  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: