src/hotspot/share/memory/metaspace.hpp
changeset 47553 5d20359dd938
parent 47216 71c04702a3d5
child 47599 0fb1d501c408
--- a/src/hotspot/share/memory/metaspace.hpp	Tue Sep 26 14:05:27 2017 +0200
+++ b/src/hotspot/share/memory/metaspace.hpp	Thu Sep 28 09:56:54 2017 -0400
@@ -273,7 +273,7 @@
   // Running sum of space in all Metachunks that
   // are being used for metadata. One for each
   // type of Metadata.
-  static size_t _used_words[Metaspace:: MetadataTypeCount];
+  static volatile size_t _used_words[Metaspace:: MetadataTypeCount];
 
  public:
   // Decrement and increment _allocated_capacity_words