RFR: JDK-8189608 Remove duplicated jni.h
David Holmes
david.holmes at oracle.com
Thu Oct 19 02:07:48 UTC 2017
On 18/10/2017 11:14 PM, coleen.phillimore at oracle.com wrote:
>
> This looks great. There's also jvm.h too, which is a little more
> different but shouldn't be.
jvm.h plus the platform specific headers need a bit more work. There's a
runtime bug open for that:
https://bugs.openjdk.java.net/browse/JDK-8189610
> Did/could you make this change in the jdk10/hs repository since it's
> primarily hotspot files? I can't tell from the webrev.
I suggested hs.
David
> Thanks,
> Coleen
>
>
>
> On 10/18/17 4:53 AM, Magnus Ihse Bursie wrote:
>> The file jni.h is stored twice in the repo, both in hotspot and in
>> java.base. They are both identical, and only the java.base version is
>> included in the final product.
>>
>> This bug is a part of the umbrella effort JDK-8167078 "Duplicate
>> header files in hotspot and jdk". As for JDK-8189607, my reasoning is
>> that the java.base version is the one to keep. (In this case, there
>> was actually a small difference between the two files -- the hotspot
>> version first copyright year was 1997, but the java.base version was
>> 1996. It makes sense to keep the oldest one.)
>>
>> My assumption was that hotspot include files should be sorted
>> according to the containing directory, and since jni.h no longer
>> resides in "prims", I've rearranged the include line where needed.
>>
>> The -I path added in CompileJvm.gmk is identical to the one in
>> JDK-8189607, and will be merged to the same change (depending on which
>> fix enters first.)
>>
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8189608
>> WebRev:
>> http://cr.openjdk.java.net/~ihse/JDK-8189608-remove-duplicated-jni/webrev.01
>>
>>
>> /Magnus
>
More information about the hotspot-dev
mailing list