src/hotspot/share/runtime/thread.hpp
changeset 48428 e569e83139fd
parent 48312 2a1413298af0
child 49006 c6d1c4ad90f4
--- a/src/hotspot/share/runtime/thread.hpp	Wed Jan 03 11:10:56 2018 -0800
+++ b/src/hotspot/share/runtime/thread.hpp	Wed Jan 03 14:41:17 2018 -0800
@@ -2064,13 +2064,13 @@
  private:
   CompilerCounters* _counters;
 
-  ciEnv*            _env;
-  CompileLog*       _log;
-  CompileTask*      _task;
-  CompileQueue*     _queue;
-  BufferBlob*       _buffer_blob;
+  ciEnv*                _env;
+  CompileLog*           _log;
+  CompileTask* volatile _task;  // print_threads_compiling can read this concurrently.
+  CompileQueue*         _queue;
+  BufferBlob*           _buffer_blob;
 
-  AbstractCompiler* _compiler;
+  AbstractCompiler*     _compiler;
 
  public: