[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-2d-dev
Subject: [OpenJDK 2D-Dev] Integrated: 8254024: Enhance native libs for AWT and Swing to work with GraalVM Nat
From: Andrii Rodionov <github.com+1538227+arodionov () openjdk ! java ! net>
Date: 2020-12-15 21:39:58
Message-ID: zhRYFw9KPjDpGRNXdMbOo1skLJ-ECLPEeU7LG-tYP64=.193c7663-115e-41a0-ad21-0e7dd7f71e4d () github ! com
[Download RAW message or body]
On Thu, 8 Oct 2020 12:57:29 GMT, Andrii Rodionov \
<github.com+1538227+arodionov@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.rodionov@oracle.com>
Committer: Bob Vandette <bobv@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic