2 messages in net.java.openjdk.hotspot-devHelp! where the interpreter is invoked?
FromSent OnAttachments
Wei Zheng (Person Consulting)Feb 14, 2008 5:54 am 
Wei ZhengFeb 14, 2008 5:57 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Help! where the interpreter is invoked?Actions
From:Wei Zheng (love@hotmail.com)
Date:Feb 14, 2008 5:57:01 am
List:net.java.openjdk.hotspot-dev

Hi All,

I am reading the source codes of hotspot. I want to know where the interpreter is invoked to translate the bytecodes of the static method "main" in a class file into native instructions.

I debugged the source codes and found the functions below are invoked to execute the static method "main" :

jni_CallStaticVoidMethod ->

jni_invoke_static ->

JavaCalls::call -> JavaCalls::call_helper ->

StubRoutines::call_stub()( (address)&link, ..) // the static method "main" is executed after this step.

Who can tell me where the interpreter is invoked in the functions above? Thank you very much!