Capturing the first invocation of a method
Harry Yale
harryyale at gmail.com
Mon Jan 7 15:55:21 PST 2008
Hi,
How can I capture the moment of the very first invocation of every Java
method?
I have tried the following approach:
In InterpreterGenerator::generate_counter_incr(), I look for the counter
value 1 (actually 8 (1 << 3) because the lowest 3 bits are used for other
purposes)
and if so jump to a function in InterpreterRuntime (like
InterpreterRuntime::frequency_counter_overflow()) which prints the name of
the method.
but I haven't been able to see the first invocation of non-native Java
methods. Non-native Java methods seem to have a much larger counter value by
the time I capture them in the above function.
Am I missing another invocation path or is there a better approach?
Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/hotspot-dev/attachments/20080107/893caafd/attachment.html
More information about the hotspot-dev
mailing list