hotspot/src/share/vm/runtime/thread.hpp
changeset 16991 aa4978a77e1f
parent 15926 8e87d545195f
child 17867 a309214b7a18
--- a/hotspot/src/share/vm/runtime/thread.hpp	Tue Apr 09 08:52:32 2013 -0700
+++ b/hotspot/src/share/vm/runtime/thread.hpp	Wed Apr 10 08:55:50 2013 -0400
@@ -1056,11 +1056,11 @@
 #if INCLUDE_NMT
   // native memory tracking
   inline MemRecorder* get_recorder() const          { return (MemRecorder*)_recorder; }
-  inline void         set_recorder(MemRecorder* rc) { _recorder = (volatile MemRecorder*)rc; }
+  inline void         set_recorder(MemRecorder* rc) { _recorder = rc; }
 
  private:
   // per-thread memory recorder
-  volatile MemRecorder* _recorder;
+  MemRecorder* volatile _recorder;
 #endif // INCLUDE_NMT
 
   // Suspend/resume support for JavaThread