Patch: Xlib AWT and Java 2D

Bryce McKinlay bryce@albatross.co.nz
Wed Oct 25 00:16:00 GMT 2000


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 ]




More information about the Java-patches mailing list