This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Speedup gij/libjava loading on darwin


On Darwin, libjava testing takes for ever. The issue is that loading gij (and
the native programs) is slow and most of the time is spent dyld (the dynamic
loader, like ld.so). If we link with -single_module, the issue goes away
because the dynamic loader have less symbols to resolve at load time.


I stole the code in libobjc and libgfortran which I wrote to fix implement this.

OK? Bootstrapped and tested on powerpc-darwin with no regressions.

Oh and testing libjava takes now 2.5 hours instead of 4 hours or so.

Thanks,
Andrew Pinski

ChangeLog:

	* Makefile.am (extra_ldflags_libjava): New variable to
	substitute in.
	(LIBLINK): Add extra_ldflags_libjava to it.
	* configure.ac (extra_ldflags_libgfortran): Set for *-darwin* to
	"-Wl,-single_module".


Attachment: speedup.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]