This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Re: Patch: Xlib AWT and Java 2D
- To: tromey at cygnus dot com
- Subject: Re: Patch: Xlib AWT and Java 2D
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Wed, 25 Oct 2000 20:16:10 +1300
- CC: "Rolf W. Rasmussen" <rolfwr at ii dot uib dot no>, java-patches at sourceware dot cygnus dot com
- References: <20001022023931.A710@amy> <87g0llvg82.fsf@creche.cygnus.com>
Tom Tromey wrote:
> >>>>> "Rolf" == Rolf W Rasmussen <rolfwr@ii.uib.no> writes:
>
> Rolf> TODO: The makefile should be modified to install symlinks from
> Rolf> libgcjx.so gnu-gcj-xlib.so and gnu-awt-xlib.so to allow dynamic
> Rolf> loading of classes from gnu.gcj.xlib and gnu.awt.xlib.
>
> I have a patch to do this. But what will dlopen() do with these
> symlinks? We might possibly try to load the same library twice, under
> different names.
Only gnu.awt.xlib needs the simlink, thats where the XToolkit class is.
gnu.gcj.xlib is a CNI based wrapper for xlib, gnu.awt.xlib is a wrapper
around that which implements a subset (currently) of the AWT
Anyway, I don't think libgcj would ever try to dlopen the same library
twice, would it? The second time forName() was run, the class would
already be loaded and libgcj wouldn't need to call dlopen. But thats an
interesting question, what would happen we did try to dlopen the same
library twice?
regards
[ bryce ]