--- 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