[OpenJDK 2D-Dev] RFR: 8254024: Enhance native libs for AWT and Swing to work with GraalVM Native Image

Phil Race prr at openjdk.java.net
Thu Oct 15 16:57:14 UTC 2020


On Thu, 15 Oct 2020 16:40:12 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>>> Sorry I am not familiar with that work. Please provide more info.
>> 
>> Here's the JEP for the work done in JDK8 to allow libraries to be built and used statically.
>> 
>> https://bugs.openjdk.java.net/browse/JDK-8046168
>> 
>> Here's the changes done to allow a Mac build to be done fully statically.
>> 
>> http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/55573c377d64
>
>> 
>> Here's the JEP for the work done in JDK8 to allow libraries to be built and used statically.
> 
> Does it mean that in the case of static-libs both variants of AWT libraries(xawt and headless) will be loaded?
> How it is possible to test the current changes?

I would have to suppose that isn't possible but it is not clear whether the authors
of the fix are OK with this or not because the PR is very light on background and explanation. Which is a blocker for
me.

I don't get the motivation from the JEP as to how it applies here.
There are two motivations listed
1) For environments that don't support dynamic linking, and that doesn't apply to 64 bit Linux server so we can rule
that out 2) For applications that "want" to statically link. I want a lot of things but wanting it isn't a very well
expressed motivation for something like this.

-------------

PR: https://git.openjdk.java.net/jdk/pull/562


More information about the 2d-dev mailing list