re PR libgcj/9125 (VMClassLoader should cache the result of Runtime.(internal)loadLib...
authorTom Tromey <tromey@redhat.com>
Wed, 20 Aug 2003 15:32:23 +0000 (15:32 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Wed, 20 Aug 2003 15:32:23 +0000 (15:32 +0000)
commit3f1923dcc183ad589948318c2099b6548fc82e93
tree9dc3ee43232dc76c5cf29cca667d555d8d9c62e7
parent9c6f74cd3f4fa7711ab1eb9e7a176450aa699e54
re PR libgcj/9125 (VMClassLoader should cache the result of Runtime.(internal)loadLibrary())

Fix for PR libgcj/9125:
* gnu/gcj/runtime/natVMClassLoader.cc (findClass): Find Runtime
object outside of loop.  Respect lib_control setting.
* gnu/gcj/runtime/VMClassLoader.java (tried_libraries): New
field.
(lib_control): New field.
(LIB_FULL, LIB_CACHE, LIB_NEVER): New constants.
(VMClassLoader): Initialize new field.

From-SVN: r70600
libjava/ChangeLog
libjava/gnu/gcj/runtime/VMClassLoader.java
libjava/gnu/gcj/runtime/natVMClassLoader.cc