How to compare thecaller thread object and callee's holder?
Tony Guan
guanxiaohua at gmail.com
Wed Apr 21 07:06:07 PDT 2010
Hi,
a quick question: given a caller thread object( JavaThread* thread)
and the method to be called by the thread (methodOopDesc* method), how
do I know that the holder of the "method" is from the same caller
object or not?
The reason why I am asking is:
in
JRT_LEAF(int, SharedRuntime::dtrace_method_entry( JavaThread*
thread, methodOopDesc* method)) in shareRuntime.cpp
I want to check if the method called will start another thread or not,
so I need to compare the holders of the caller and callee.
So one more question: is there any other way to achieve this?
thanks!
Tony (Xiaohua Guan)
More information about the hotspot-runtime-dev
mailing list