gold for linking (original) (raw)
Ioi Lam ioi.lam at oracle.com
Sun Mar 26 10:30:55 UTC 2017
- Previous message (by thread): Review Request: JDK-8173303: Add module-subgraph images to main platform documentation
- Next message (by thread): gold for linking
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
Thanks
- Ioi
- Previous message (by thread): Review Request: JDK-8173303: Add module-subgraph images to main platform documentation
- Next message (by thread): gold for linking
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]