src/hotspot/share/gc/z/zCPU.hpp
changeset 58125 9b4717ca9bd1
parent 50525 767cdb97f103
child 58709 662d9e1e2a60
--- a/src/hotspot/share/gc/z/zCPU.hpp	Fri Sep 13 08:40:09 2019 +0200
+++ b/src/hotspot/share/gc/z/zCPU.hpp	Fri Sep 13 08:40:09 2019 +0200
@@ -26,6 +26,7 @@
 
 #include "memory/allocation.hpp"
 #include "memory/padded.hpp"
+#include "utilities/globalDefinitions.hpp"
 
 class Thread;
 
@@ -36,8 +37,8 @@
   };
 
   static PaddedEnd<ZCPUAffinity>* _affinity;
-  static __thread Thread*         _self;
-  static __thread uint32_t        _cpu;
+  static THREAD_LOCAL Thread*     _self;
+  static THREAD_LOCAL uint32_t    _cpu;
 
 public:
   static void initialize();