[Git][ghc/ghc][wip/T22077] 6 commits: rts: Add missing declaration of stg_noDuplicate
Ben Gamari (@bgamari)
gitlab at gitlab.haskell.org
Thu Aug 25 14:08:27 UTC 2022
Ben Gamari pushed to branch wip/T22077 at Glasgow Haskell Compiler / GHC
Commits:
3820387b by Ben Gamari at 2022-08-25T10:08:03-04:00
rts: Add missing declaration of stg_noDuplicate
- - - - -
46101141 by Ben Gamari at 2022-08-25T10:08:11-04:00
base: Move CString, CStringLen to GHC.Foreign
- - - - -
3b0785ca by Ben Gamari at 2022-08-25T10:08:11-04:00
base: Move IPE helpers to GHC.InfoProv
- - - - -
2be785d1 by Ben Gamari at 2022-08-25T10:08:11-04:00
rts: Refactor IPE tracing support
- - - - -
3650e2a7 by Ben Gamari at 2022-08-25T10:08:11-04:00
Refactor IPE initialization
Here we refactor the representation of info table provenance information
in object code to significantly reduce its size and link-time impact.
Specifically, we deduplicate strings and represent them as 32-bit
offsets into a common string table.
In addition, we rework the registration logic to eliminate allocation
from the registration path, which is run from a static initializer where
things like allocation are technically undefined behavior (although it
did previously seem to work). For similar reasons we eliminate lock
usage from registration path, instead relying on atomic CAS.
Closes #22077.
- - - - -
734e4ef2 by Ben Gamari at 2022-08-25T10:08:11-04:00
Separate IPE source file from span
The source file name can very often be shared across many IPE entries
whereas the source coordinates are generally unique. Separate the two to
exploit sharing of the former.
- - - - -
30 changed files:
- compiler/GHC/Cmm/CLabel.hs
- compiler/GHC/Cmm/Parser.y
- compiler/GHC/Driver/CodeOutput.hs
- compiler/GHC/Driver/Main.hs
- + compiler/GHC/StgToCmm/InfoTableProv.hs
- compiler/GHC/StgToCmm/Prof.hs
- compiler/ghc.cabal.in
- libraries/base/Foreign/C/String.hs
- libraries/base/GHC/Foreign.hs
- + libraries/base/GHC/InfoProv.hsc
- libraries/base/GHC/Stack/CCS.hsc
- libraries/base/GHC/Stack/CloneStack.hs
- libraries/base/base.cabal
- rts/IPE.c
- rts/IPE.h
- rts/RtsStartup.c
- rts/Trace.c
- rts/Trace.h
- rts/eventlog/EventLog.c
- rts/eventlog/EventLog.h
- rts/include/Cmm.h
- rts/include/Rts.h
- rts/include/rts/IPE.h
- rts/include/stg/MiscClosures.h
- rts/include/stg/SMP.h
- rts/sm/NonMoving.h
- testsuite/tests/profiling/should_run/staticcallstack001.hs
- testsuite/tests/profiling/should_run/staticcallstack001.stdout
- testsuite/tests/profiling/should_run/staticcallstack002.hs
- testsuite/tests/profiling/should_run/staticcallstack002.stdout
The diff was not included because it is too large.
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/1864cd27cb51092d71d21f39e1fef550037ef635...734e4ef27fe8108ab888943bcca0d9b03de5de44
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/1864cd27cb51092d71d21f39e1fef550037ef635...734e4ef27fe8108ab888943bcca0d9b03de5de44
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20220825/56305ebf/attachment.html>
More information about the ghc-commits
mailing list