Capturing the first invocation of a method
harryyale at gmail.com
Mon Jan 7 15:55:21 PST 2008
How can I capture the moment of the very first invocation of every Java
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
and if so jump to a function in InterpreterRuntime (like
InterpreterRuntime::frequency_counter_overflow()) which prints the name of
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-dev