JVMInit function call - where is it located the source?

mr rupplin mearvk at outlook.com
Wed Aug 22 01:02:16 UTC 2018


Quickly, where do we look?  I can't seem to find where the "javac" command is called in the C interface.


Where is the java code that runs the parser/compiler?  Ok, thanks gotta run ably.


/mr

________________________________
From: mr rupplin <mearvk at outlook.com>
Sent: Tuesday, August 21, 2018 6:37:30 PM
To: core-libs-dev at openjdk.java.net; Andrew Haley
Subject: Re: JVMInit function call - where is it located the source?

Thanks.

Get Outlook for Android<https://aka.ms/ghei36>

________________________________
From: Andrew Haley <aph at redhat.com>
Sent: Tuesday, August 21, 2018 12:32:20 PM
To: mr rupplin; core-libs-dev at openjdk.java.net
Subject: Re: JVMInit function call - where is it located the source?

On 08/21/2018 05:21 PM, mr rupplin wrote:
> Inside java.c there is a JLI_Launch which purports to be the launching or entry point for the JVM.  The last line shows:
>
>
> return JVMInit(&ifn, threadStackSize, argc, argv, mode, what, ret);
>
>
> This is given apparently as a function call that will return an int.  However the include file java.h shows no source for this function.

>  Where is it located?

Couldn't you just look?

src/java.base/unix/native/libjli/java_md_solinux.c:79

> And finally where is the javac.c source file? I'm sure it's been here and now its lost. - ok

It's part of the Java launcher, jexec.c. The easiest way to discover
this stuff is to run javac in a real C++ debugger.

--
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


More information about the core-libs-dev mailing list