JVMInit function call - where is it located the source? (original) (raw)

Andrew Haley aph at redhat.com
Tue Aug 21 16:32:20 UTC 2018


On 08/21/2018 05:21 PM, mr rupplin wrote:

Inside java.c there is a JLILaunch 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