jar files opened twice?

Andrew Haley aph@redhat.com
Sat Dec 3 09:41:00 GMT 2005

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.


More information about the Java mailing list