Understanding templateInterpreter

Andrew Haley aph at redhat.com
Tue Aug 11 13:43:00 UTC 2015


On 08/11/2015 02:23 PM, Manas Thakur wrote:

> I am trying to understand the working of HotSpot, and I am stuck
> with the template interpreter.
> 
> I was wondering if there a document available on the detailed
> working of template interpreter. The main thing I want to find out
> is that once the templates for different byte codes are generated
> during startup, where is the code that is responsible to select the
> templates by scanning over the bytecode?

You're probably looking in the wrong place.  The group of functions
that dispatch to the code for the next bytecode is
InterpreterMacroAssembler::dispatch_*.

I suggest you print the interpreter and then step through some very
simple methods.  It should become clear soon enough once you do that.

Andrew.


More information about the hotspot-dev mailing list