Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Virtual Machine / March 2004

Tip: Looking for answers? Try searching our database.

Java Method Arguments in native jvm method do_execute_java_method_vararg

Thread view: 
Manjari - 01 Mar 2004 19:34 GMT
Hello Friends,

I am at a point where I need to understand how does the native jvm
function "do_execute_java_method_vararg", gets hold of the method
args. Thank you all, for reading through my post and please, if you
have any ideas that could help me learn this, please post them. I
would be very thankful.

The signature of the function 'do_execute_java_method_vararg" looks
like this:

long do_execute_java_method_vararg (ExecEnv * ee, void * obj,char *
method_name, char * method_signature,struct methodblock * mb, bool_t
isStaticCall,va_list args,long * otherBits, bool_t shortFloats)

As I understand that, the "args" in the signature should contain the
actual arguments that a method specified in the methodblock (mb,
above) takes.

So, how is this list traversed? So, if this is being traversed in the
way of a typical va_list, like:

va_start(args,ee->current_frame->optop); // Is the second parameter
correct here?

for(int i = 1 ; i < methodblockPtr->args_size; i++ )
{
if(shortFloats != 0)
{
longArg = va_arg( args,long );
//do something with this longArg
}
else
{
doubleArg = va_arg( args,double );
//do something with doubleArg
}

}//end for loop
va_end( args );

My question to you all, is that in "va_start", are the parameters that
I am assuming, Correct? I am very hopeful from you all, that I would
get help here, definitely. Thank you so much in advance.

Regards.
Chris Uppal - 04 Mar 2004 16:55 GMT
>  [...snipped...]

Nobody has replied to this.  I suspect it's because nobody really understands
what you are asking. If you are asking about va_list and how to use varargs
functions in 'C' then ask again and we can probably tell you (but you'd
probably get better information by asking on comp.lang.c).  If you are asking
something about the specific use of varargs in some JVM implementation, then
maybe someone can help with that too, but you'll have to tell us *which* JVM
implementation, and -- since it seems to be about the internal
implementation -- there may not be anyone who reads this group who knows
anything about that specific JVM.

   -- chris


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.