Two small ecj tweaks
Andrew John Hughes
gnu_andrew at member.fsf.org
Mon Dec 1 02:14:52 PST 2008
On 01/12/2008, Mark Wielaard <mark at klomp.org> wrote:
> Hi Andrew,
>
>
> On Mon, 2008-12-01 at 03:06 +0000, Andrew John Hughes wrote:
> > I would also suggest possibly adding -Dgnu.gcj.precompiled.db.path to
> > the interpreted invocation. On at least Debian and Gentoo, the
> > mapping between ecj.jar and ecj.so is stored in the default database
> > but as far as I can see, it doesn't get used unless this option is
> > given. I patched the Gentoo build today to pass
> > -Dgnu.gcj.precompiled.db.path=$(gcj-dbtool -p) to @JAVA@ and it gave a
> > very noticeable speedup.
>
>
> That is actually surprising. If there is a default system database then
> should be picked up automatically by gij. You should only need
> gnu.gcj.precompiled.db.path if you use an alternative database.
>
> Cheers,
>
>
> Mark
>
>
Yes, I was surprised too. I'd assumed that adding the mapping to the
default database would solve the issue on Gentoo, but lsof showed the
so file was only accessed when I added this. The Debian script also
includes it:
exec /usr/bin/gij-$ver \
-Dgnu.gcj.precompiled.db.path=/var/lib/gcj-$ver/classmap.db \
-Djava.ext.dirs=/usr/lib/java-ext:/usr/share/java-ext \
org.eclipse.jdt.internal.compiler.batch.Main $bcoption ${1+"$@"}
--
Andrew :-)
Support Free Java!
Contribute to GNU Classpath and the OpenJDK
http://www.gnu.org/software/classpath
http://openjdk.java.net
PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8
More information about the distro-pkg-dev
mailing list