Understanding templateInterpreter

Manas Thakur manasthakur17 at gmail.com
Tue Aug 11 14:08:05 UTC 2015

Thanks Andrew. I would try it and get back, if needed.


> On 11-Aug-2015, at 7:13 pm, Andrew Haley <aph at redhat.com> wrote:
> 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