On Thu, 8 Oct 2020 12:57:29 GMT, Andrii Rodionov 
<github.com+1538227+arodio...@openjdk.org> wrote:

> The following PR fixes https://bugs.openjdk.java.net/browse/JDK-8254024
> 
> Starting from version 11.0.9, all JDK libraries also build as static 
> libraries (JEP 178: Statically-Linked JNI Libraries).
> The purpose of using static libraries is to build GraalVM Native image 
> statically linked with Java native libraries, to shipping single executable 
> without runtime dependencies from JRE.
> 
> For some static libraries, it leads to an issue: if one static library is 
> trying to load another static library in runtime using `dlopen` (and then 
> uses `dlsym` to find symbols). With static libraries, this is not possible 
> and all dynamic calls should be replaced.
> 
> This happens in `libawt` while it loads `awt-xawt` or `awt_headless` and in 
> `mlib_image`.
> 
> Current PR fixes this issue for AWT libraries that allow building Swing/AWT 
> applications as a Native image and have no runtime dependencies from JRE.

This pull request has now been integrated.

Changeset: 7977e381
Author:    Andrii Rodionov <andrii.rodio...@oracle.com>
Committer: Bob Vandette <b...@openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/7977e381
Stats:     92 lines in 4 files changed: 81 ins; 0 del; 11 mod

8254024: Enhance native libs for AWT and Swing to work with GraalVM Native Image

Reviewed-by: serb, ihse, bobv

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

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

Reply via email to