gold for linking
ioi.lam at oracle.com
Sun Mar 26 10:30:55 UTC 2017
I just tried adding -fuse-ld=gold to the g++ linker flags, and my
libjvm.so link time shrinks from 18 seconds to 6 seconds. And that's
with single threaded linking. If I add "-Wl,--threads
-Wl,--thread-count,8" it becomes 4 seconds. It doesn't seem to scale
after 8 threads.
Any plans for adding official (perhaps optional) support for gold in the
JDK build system?
More information about the build-dev