RFR(S): 8194482: Fix SIGSEGV in print_threads_compiling.
goetz.lindenmaier at sap.com
Wed Jan 3 12:37:46 UTC 2018
print_threads_compiling prints the tasks compiler threads are working on.
It gets the task from the thread, checks it for NULL, and then reads the task again from the
thread. in the meantime, the compiler thread can set the task back to
NULL so that the check was pointless.
The task must be read only once. The field _task must be volatile, so that
the C-compiler can't re-introduce the read.
Please review this change. I please need a sponsor. I think this should be fixed
More information about the hotspot-compiler-dev