src/hotspot/share/gc/z/zStat.hpp
changeset 58125 9b4717ca9bd1
parent 55285 9a120214e732
child 58679 9c3209ff7550
child 58701 5d10ba4a0468
--- a/src/hotspot/share/gc/z/zStat.hpp	Fri Sep 13 08:40:09 2019 +0200
+++ b/src/hotspot/share/gc/z/zStat.hpp	Fri Sep 13 08:40:09 2019 +0200
@@ -29,6 +29,7 @@
 #include "gc/z/zMetronome.hpp"
 #include "logging/logHandle.hpp"
 #include "memory/allocation.hpp"
+#include "utilities/globalDefinitions.hpp"
 #include "utilities/numberSeq.hpp"
 #include "utilities/ticks.hpp"
 
@@ -271,7 +272,7 @@
 //
 class ZStatTimerDisable : public StackObj {
 private:
-  static __thread uint32_t _active;
+  static THREAD_LOCAL uint32_t _active;
 
 public:
   ZStatTimerDisable() {