x86_32 OptoRuntime::generate_exception_blob() unnecessary second get_thread() call?
Christian.Thalinger at Sun.COM
Fri Jul 10 07:41:47 PDT 2009
While changing something in OptoRuntime::generate_exception_blob() in
runtime_x86_32.cpp I noticed that there are two calls to get_thread()
and the second call happens while the register from the first call still
holds the value.
I don't see any reason why this is necessary, even when the stack
changes slightly in between and the _sp_map on Linux would be indexed
with another value, the thread value has to be the same.
Am I missing something here or could the second call be removed safely?
More information about the hotspot-compiler-dev