This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: set default library control to LIB_NEVER


Hi,

This patch sets the default library control to LIB_NEVER. This saves many failed access() and open() calls for large applications like Eclipse. Applications that still need the old library control can define the gnu.gcj.runtime.VMClassLoader.library_control system property to "cache".

OK to commit?

Tom

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

	* java/lang/VMClassLoader.java (initialize): Set default library
	control to LIB_NEVER.
Index: java/lang/VMClassLoader.java
===================================================================
--- java/lang/VMClassLoader.java	(revision 114136)
+++ java/lang/VMClassLoader.java	(working copy)
@@ -309,7 +309,7 @@
     else if ("full".equals(p))
       lib_control = LIB_FULL;
     else
-      lib_control = LIB_CACHE;
+      lib_control = LIB_NEVER;
 
     tried_libraries = new HashSet();
   }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]