diff options
author | Tom Tromey <tromey@cygnus.com> | 1999-05-05 14:19:24 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 1999-05-05 14:19:24 +0000 |
commit | 9096b279c220a45ee1a369a46661b366db767502 (patch) | |
tree | 14b0eb7b6f562102ad5e5179e72ba9ffe7a1066c /libjava/java/lang/Runtime.java | |
parent | 8b04083becc6a7703c24f9802cd943da33de2a4a (diff) | |
download | gcc-9096b279c220a45ee1a369a46661b366db767502.zip gcc-9096b279c220a45ee1a369a46661b366db767502.tar.gz gcc-9096b279c220a45ee1a369a46661b366db767502.tar.bz2 |
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (CLEANFILES): Don't mention $(class_files).
(clean-local): New target
* java/lang/natRuntime.cc: Include <ltdl.h> if required.
(load, loadLibrary): Now native.
(init): New method.
* java/lang/Runtime.java (load, loadLibrary): Now native.
(init): New native method.
(Runtime): Use init.
* prims.cc: Include <ltdl.h> if required.
(JvRunMain): Call LTDL_SET_PRELOADED_SYMBOLS.
From-SVN: r26785
Diffstat (limited to 'libjava/java/lang/Runtime.java')
-rw-r--r-- | libjava/java/lang/Runtime.java | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/libjava/java/lang/Runtime.java b/libjava/java/lang/Runtime.java index baf1ae5..94e7770 100644 --- a/libjava/java/lang/Runtime.java +++ b/libjava/java/lang/Runtime.java @@ -94,18 +94,8 @@ public class Runtime s.checkLink(lib); } - public synchronized void load (String pathname) - { - checkLink (pathname); - // FIXME. - throw new UnsatisfiedLinkError ("Runtime.load not implemented"); - } - public synchronized void loadLibrary (String libname) - { - checkLink (libname); - // FIXME. - throw new UnsatisfiedLinkError ("Runtime.loadLibrary not implemented"); - } + public native void load (String pathname); + public native void loadLibrary (String libname); public native void runFinalization (); @@ -122,10 +112,13 @@ public class Runtime public native void traceInstructions (boolean on); public native void traceMethodCalls (boolean on); + // A helper for the constructor. + private final native void init (); + // The sole constructor. private Runtime () { - finalize_on_exit = false; + init (); } // Private data. |