This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/15474] libgcj jar file should always be in classpath at runtime
- From: "mckinlay at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 25 Aug 2004 17:52:32 -0000
- Subject: [Bug java/15474] libgcj jar file should always be in classpath at runtime
- References: <20040516104929.15474.green@redhat.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mckinlay at redhat dot com 2004-08-25 17:52 -------
As Mark suggests, the harm is that adding extra things to the classpath will
cause these .jar files to be opened and searched for classes. That could slow
down runtime start-up and increase memory usage.
Even if our classloaders are smart enough to avoid looking in .jar files for
classes that are compiled in to libgcj.so, they will still have to look when
someone does, for example, a Class.forName() on a non-existant class. This
actually happens all the time when loading ResourceBundles, for example, so even
a well-written application can't easily avoid it.
With well-written classloaders, however, it should be possible to minimize the
overhead - so I'm not totally against this idea if it prooves to be useful. We
just have to be careful about minimizing the cost.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15474