How to trace the hotspot bytecode interpreter
gbenson at redhat.com
Thu Feb 19 08:40:29 PST 2009
Colin(Du Li) wrote:
> Thank you very much for your explanation!
No problem :)
> I still have two questions.
> 1. If I wanna add a read barrier to bytecode interpreter, which will
> trap all the object access in bytecode, where should I put this read
I don't know, I'm not familiar with the template interpreter.
> 2. What is the bytecodeInterpreter.cpp used for? It seems to have a
> lot of bytecode interpreter thing as follows:
> SET_STACK_OBJECT(LOCALS_OBJECT(pc), 0);
> UPDATE_PC_AND_TOS_AND_CONTINUE(2, 1);
The stuff in bytecodeInterpreter.cpp is used for platforms other than
X86 and Sparc. At Red Hat we use it on PowerPC, ARM, zSeries, IA-64,
and probably others I forgot.
More information about the hotspot-dev