JVM interface header src location?
mandy chung
mandy.chung at oracle.com
Thu Jan 11 23:27:24 UTC 2018
On 1/11/18 2:01 PM, David Holmes wrote:
>
>> Wouldn't it be better for these headers to be under some generic
>> "jvm" or
>> "base" include folder?
>
> It would solve your problem. :) And I'm not opposed to moving them as
> a convenience to you. My main concern would be that this is not seen
> as a supported, exported, external contract between the JDK libraries
> and any VM. I would still consider it a private interface between the
> JDK and hotspot that changes whenever hotspot (or the JDK) needs it to.
>
Right. It's internal interface between JDK and hotspot.
src/java.base/share/include wasn't the desired location for it and hence
the relocation.
Would it be an alternative if the source location of these header files
can be configured at build time so that other JVM implementor can build
JDK with an alternate location? I would expect that other VM
implementation would have to do some work for any change to jvm.h
regardless of where it's located. The extra (hopefully minimal) work is
to update its own copy of jvm.h.
Mandy
More information about the hotspot-dev
mailing list