[Git][ghc/ghc][wip/exception-context] 10 commits: Refactor IPE initialization
Ben Gamari (@bgamari)
gitlab at gitlab.haskell.org
Sat Aug 20 03:28:33 UTC 2022
Ben Gamari pushed to branch wip/exception-context at Glasgow Haskell Compiler / GHC
Commits:
c0d18614 by Ben Gamari at 2022-08-19T23:19:29-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.
- - - - -
ebc644c1 by Ben Gamari at 2022-08-19T23:19:29-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.
- - - - -
9b26d780 by Ben Gamari at 2022-08-19T23:21:03-04:00
base: Clean up imports of GHC.ExecutionStack
- - - - -
c3383e5e by Ben Gamari at 2022-08-19T23:21:03-04:00
base: Clean up imports of GHC.Stack.CloneStack
- - - - -
95f5b0cd by Ben Gamari at 2022-08-19T23:21:03-04:00
base: Move prettyCallStack to GHC.Stack
- - - - -
8f77187c by Ben Gamari at 2022-08-19T23:22:06-04:00
base: Move PrimMVar to GHC.MVar
- - - - -
b4113d28 by Ben Gamari at 2022-08-19T23:22:06-04:00
base: Introduce exception context
- - - - -
d43c456f by Ben Gamari at 2022-08-19T23:25:28-04:00
base: Introduce exception backtrace infrastructure
- - - - -
5772ed24 by Ben Gamari at 2022-08-19T23:25:28-04:00
base: Collect backtraces in GHC.IO.throwIO
- - - - -
8d173dea by Ben Gamari at 2022-08-19T23:25:28-04:00
base: Collect backtraces in GHC.Exception.throw
- - - - -
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/GHC/Conc/Sync.hs
- libraries/base/GHC/Exception.hs
- + libraries/base/GHC/Exception/Backtrace.hs
- + libraries/base/GHC/Exception/Backtrace.hs-boot
- + libraries/base/GHC/Exception/Context.hs
- + libraries/base/GHC/Exception/Context.hs-boot
- libraries/base/GHC/Exception/Type.hs
- libraries/base/GHC/ExecutionStack.hs
- libraries/base/GHC/ExecutionStack/Internal.hsc
- libraries/base/GHC/IO.hs
- libraries/base/GHC/InfoProv.hsc
- libraries/base/GHC/MVar.hs
- libraries/base/GHC/Stack.hs
- + libraries/base/GHC/Stack.hs-boot
- libraries/base/GHC/Stack/CCS.hs-boot
- libraries/base/GHC/Stack/CloneStack.hs
- libraries/base/base.cabal
- rts/IPE.c
- rts/IPE.h
- rts/RtsStartup.c
- rts/Trace.c
- rts/eventlog/EventLog.c
- rts/include/rts/IPE.h
The diff was not included because it is too large.
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/2d00c7af4a4ac3251ccf1bdf2b2fa808b0de5255...8d173dea5e5e04a0a0cfa2b35cd0ec1e45d4e861
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/2d00c7af4a4ac3251ccf1bdf2b2fa808b0de5255...8d173dea5e5e04a0a0cfa2b35cd0ec1e45d4e861
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/20220819/609106d2/attachment.html>
More information about the ghc-commits
mailing list