[GHC] #13274: GHC library is accumulating exported symbols at a very rapid rate.
GHC
ghc-devs at haskell.org
Sun Feb 12 14:53:53 UTC 2017
#13274: GHC library is accumulating exported symbols at a very rapid rate.
-------------------------------------+-------------------------------------
Reporter: Phyx- | Owner: (none)
Type: task | Status: new
Priority: normal | Milestone: 8.4.1
Component: Compiler | Version: 8.0.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: Other
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets: #5987
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
On `20160617` libHSghc had `49610` exported symbols.
This was gotten by doing `nm -g $5 | sed -nr
's/^[a-z,A-Z,0-9]+\s([A-Z])\s(.+)$/\1 \2\n/p' | sed -r 's/^.+:.*$//g' |
sed '/^\s*$/d' | sort | uniq -u` on all object files given to link
`libHSghc`.
After rebasing on newer commit `20161015` 4 months later it now has
`124966` exported symbols. This is an explosive increase in symbol count
of nearly 300%.
On `20170208` this is now even higher `147927` which is another big
increase.
Unfortunately it's not easy for me to go back to the first build since my
git has been pruned. But I do have the list for the latest jump.
Should be investigated why. This rate will be problematic for #5987 as it
means we'll keep adding DLLs. Currently with the current head it needs to
split in 3 DLLs, and it's not far from a 4th.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13274>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list