diff -r b08405cc467a -r e569e83139fd src/hotspot/share/runtime/thread.hpp --- 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: