summaryrefslogtreecommitdiffstats
path: root/gcc/java
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-28 22:11:51 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-28 22:11:51 +0000
commit8a9af253b42bf90afe7238f6667163a92c92fe96 (patch)
tree78915852c5b5accc8cb5b221a770a046880ecdba /gcc/java
parent4070bd4355fd0e130b0ac014f25446406d7ff370 (diff)
downloadppe42-gcc-8a9af253b42bf90afe7238f6667163a92c92fe96.tar.gz
ppe42-gcc-8a9af253b42bf90afe7238f6667163a92c92fe96.zip
* gcj.texi (Extensions): Document gcjlib URLs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70891 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog4
-rw-r--r--gcc/java/gcj.texi15
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index fa236429c9e..72075f799d2 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,7 @@
+2003-08-28 Tom Tromey <tromey@redhat.com>
+
+ * gcj.texi (Extensions): Document gcjlib URLs.
+
2003-08-20 Tom Tromey <tromey@redhat.com>
* gcj.texi (Extensions): Added xref.
diff --git a/gcc/java/gcj.texi b/gcc/java/gcj.texi
index fc2232994c1..374bdf8bcc9 100644
--- a/gcc/java/gcj.texi
+++ b/gcc/java/gcj.texi
@@ -546,6 +546,21 @@ the @code{libgcj} bytecode interpreter to load the class from the standard
classpath. This process can be controlled to some degree via the
@code{gnu.gcj.runtime.VMClassLoader.library_control} property;
@xref{libgcj Runtime Properties}.
+
+@item
+
+@code{libgcj} includes a special @samp{gcjlib} URL type. A URL of
+this form is like a @code{jar} URL, and looks like
+@samp{gcjlib:/path/to/shared/library.so!/path/to/resource}. An access
+to one of these URLs causes the shared library to be @code{dlopen()}d,
+and then the resource is looked for in that library. These URLs are
+most useful when used in conjunction with @code{java.net.URLClassLoader}.
+Note that, due to implementation limitations, currently any such URL
+can be accessed by only one class loader, and libraries are never
+unloaded. This means some care must be exercised to make sure that
+a @code{gcjlib} URL is not accessed by more than one class loader at once.
+In a future release this limitation will be lifted, and such
+libraries will be mapped privately.
@end itemize
@node Invoking gcjh
OpenPOWER on IntegriCloud