Commit 99d2ea7e by Thomas Fitzsimmons Committed by Thomas Fitzsimmons

gcj.texi (Extensions): Document the new gcj-dbtool-based classname-to-library resolution mechanism.

2006-05-31  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gcj.texi (Extensions): Document the new gcj-dbtool-based
	classname-to-library resolution mechanism.
	Declare the old gnu.gcj.runtime.VMClassLoader.library_control
	mechanism deprecated.
	(libgcj Runtime Properties): Document
	gnu.gcj.runtime.VMClassLoader.library_control's new default.

From-SVN: r114282
parent 07471dfb
2006-05-31 Thomas Fitzsimmons <fitzsim@redhat.com>
* gcj.texi (Extensions): Document the new gcj-dbtool-based
classname-to-library resolution mechanism.
Declare the old gnu.gcj.runtime.VMClassLoader.library_control
mechanism deprecated.
(libgcj Runtime Properties): Document
gnu.gcj.runtime.VMClassLoader.library_control's new default.
2006-05-29 Jakub Jelinek <jakub@redhat.com> 2006-05-29 Jakub Jelinek <jakub@redhat.com>
* javaop.h (int16, int32, int64): Define to exactly 16 (resp. 32, 64) * javaop.h (int16, int32, int64): Define to exactly 16 (resp. 32, 64)
......
...@@ -670,16 +670,26 @@ added are to facilitate this functionality. ...@@ -670,16 +670,26 @@ added are to facilitate this functionality.
@xref{About CNI}, for more info on how to use this in your programs. @xref{About CNI}, for more info on how to use this in your programs.
@item @item
When you compile your classes into a shared library they can be automatically When you compile your classes into a shared library using
loaded by the @code{libgcj} system classloader. When trying to load a class @code{-findirect-dispatch} then add them to the system-wide
@code{gnu.pkg.SomeClass} the system classloader will first try to load the classmap.db file using @code{gcj-dbtool}, they will be automatically
shared library @file{lib-gnu-pkg-SomeClass.so}, if that fails to load the loaded by the @code{libgcj} system classloader. This is the new,
class then it will try to load @file{lib-gnu-pkg.so} and finally when the preferred classname-to-library resolution mechanism. @xref{Invoking
class is still not loaded it will try to load @file{lib-gnu.so}. Note that gcj-dbtool}, for more information on using the classmap database.
@item
The old classname-to-library lookup mechanism is still supported
through the @code{gnu.gcj.runtime.VMClassLoader.library_control}
property, but it is deprecated and will likely be removed in some
future release. When trying to load a class @code{gnu.pkg.SomeClass}
the system classloader will first try to load the shared library
@file{lib-gnu-pkg-SomeClass.so}, if that fails to load the class then
it will try to load @file{lib-gnu-pkg.so} and finally when the class
is still not loaded it will try to load @file{lib-gnu.so}. Note that
all @samp{.}s will be transformed into @samp{-}s and that searching all @samp{.}s will be transformed into @samp{-}s and that searching
for inner classes starts with their outermost outer class. If the class for inner classes starts with their outermost outer class. If the
cannot be found this way the system classloader tries to use class cannot be found this way the system classloader tries to use the
the @code{libgcj} bytecode interpreter to load the class from the standard @code{libgcj} bytecode interpreter to load the class from the standard
classpath. This process can be controlled to some degree via the classpath. This process can be controlled to some degree via the
@code{gnu.gcj.runtime.VMClassLoader.library_control} property; @code{gnu.gcj.runtime.VMClassLoader.library_control} property;
@xref{libgcj Runtime Properties}. @xref{libgcj Runtime Properties}.
...@@ -2787,8 +2797,8 @@ frequently. ...@@ -2787,8 +2797,8 @@ frequently.
This controls how shared libraries are automatically loaded by the This controls how shared libraries are automatically loaded by the
built-in class loader. If this property is set to @samp{full}, a full built-in class loader. If this property is set to @samp{full}, a full
search is done for each requested class. If this property is set to search is done for each requested class. If this property is set to
@samp{cache} (the default), then any failed lookups are cached and not @samp{cache}, then any failed lookups are cached and not tried again.
tried again. If this property is set to @samp{never}, then lookups If this property is set to @samp{never} (the default), then lookups
are never done. For more information, @xref{Extensions}. are never done. For more information, @xref{Extensions}.
@item gnu.gcj.runtime.endorsed.dirs @item gnu.gcj.runtime.endorsed.dirs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment