This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/27938] New: gij should dlopen() libgcj
- From: "mckinlay at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 7 Jun 2006 18:36:18 -0000
- Subject: [Bug libgcj/27938] New: gij should dlopen() libgcj
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Recently, gij was changed to re-exec itself after resetting its own
LD_LIBRARY_PATH.
This change almost doubles the time needed to execute "Hello World", from 0.13s
to 0.25s on my system (and compared to 0.08s for the Sun VM).
The reason is that since gij is linked against libgcj.so, the linker's work is
being done twice as libgcj is loaded twice.
Instead, we could dlopen() libgcj only on the second invocation of gij. This
may require some cleanups to avoid accessing libgcj methods/symbols during the
first gij invocation, before the dlopen() occurs.
--
Summary: gij should dlopen() libgcj
Product: gcc
Version: 2.95
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mckinlay at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27938