This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: jar files opened twice?
- From: Andrew Haley <aph at redhat dot com>
- To: Anthony Green <green at redhat dot com>
- Cc: java at gcc dot gnu dot org
- Date: Sat, 3 Dec 2005 09:41:25 +0000
- Subject: Re: jar files opened twice?
- References: <1133579931.3524.12.camel@localhost.localdomain>
Anthony Green writes:
> When I examine gij processes running gcj-dbtool managed code on Linux
> with lsof, I see that we have two active file descriptors for every jar
> file. And strace confirms that we open each jar file twice (and keep
> them open). Is this expected behaviour?
Not by me. The gcj-dbtool based loader bypasses the jar files, using
the bytecode only for its checksum. The only place the jar files gets
opened is in the "real" class loader.
Andrew.