-
Enhancement
-
Resolution: Fixed
-
P4
-
11, 15, 16
-
b02
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8267234 | 11.0.13 | Severin Gehwolf | P4 | Resolved | Fixed | b01 |
Starting from version 11.0.9, all JDK libraries also build as static libraries.
This leads to an issue with static libs: One static libarary is trying to load another static library using dlopen and then uses dlsym to find symbols. With static libraries this is not possible.
This happens in libawt loading awt-xawt or awt_headless:
https://github.com/openjdk/jdk11u-dev/blob/master/src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c#L175
and in mlib_image:
https://github.com/openjdk/jdk11u-dev/blob/master/src/java.desktop/unix/native/libawt/awt/awt_Mlib.c#L75
This leads to an issue with static libs: One static libarary is trying to load another static library using dlopen and then uses dlsym to find symbols. With static libraries this is not possible.
This happens in libawt loading awt-xawt or awt_headless:
https://github.com/openjdk/jdk11u-dev/blob/master/src/java.desktop/unix/native/libawt/awt/awt_LoadLibrary.c#L175
and in mlib_image:
https://github.com/openjdk/jdk11u-dev/blob/master/src/java.desktop/unix/native/libawt/awt/awt_Mlib.c#L75
- backported by
-
JDK-8267234 Enhance native libs for AWT and Swing to work with GraalVM Native Image
-
- Resolved
-
- relates to
-
JDK-8263142 Delete unused entry points in libawt/libawt_xawt/libawt_headless
-
- Resolved
-
- links to
-
Commit openjdk/jdk11u-dev/0e4fdcf1
-
Commit openjdk/jdk/7977e381
-
Review openjdk/jdk11u-dev/77
-
Review openjdk/jdk/562
(1 links to)