[Git][ghc/ghc][wip/exception-context] 10 commits: Refactor IPE initialization
Ben Gamari (@bgamari)
gitlab at gitlab.haskell.org
Sat Aug 20 18:04:16 UTC 2022
Ben Gamari pushed to branch wip/exception-context at Glasgow Haskell Compiler / GHC
Commits:
809cb0cc by Ben Gamari at 2022-08-20T13:47:10-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.
- - - - -
9970aea6 by Ben Gamari at 2022-08-20T13:54:16-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.
- - - - -
f6acb523 by Ben Gamari at 2022-08-20T13:56:12-04:00
base: Clean up imports of GHC.ExecutionStack
- - - - -
c2ca84d5 by Ben Gamari at 2022-08-20T13:56:12-04:00
base: Clean up imports of GHC.Stack.CloneStack
- - - - -
9d52d6a0 by Ben Gamari at 2022-08-20T13:56:12-04:00
base: Move prettyCallStack to GHC.Stack
- - - - -
2b1591a1 by Ben Gamari at 2022-08-20T13:56:12-04:00
base: Move PrimMVar to GHC.MVar
- - - - -
e7567dd4 by Ben Gamari at 2022-08-20T13:56:12-04:00
base: Introduce exception context
- - - - -
6ee2ba4e by Ben Gamari at 2022-08-20T13:56:12-04:00
base: Introduce exception backtrace infrastructure
- - - - -
333163b5 by Ben Gamari at 2022-08-20T13:56:12-04:00
base: Collect backtraces in GHC.IO.throwIO
- - - - -
72acb8b7 by Ben Gamari at 2022-08-20T13:56:12-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/8d173dea5e5e04a0a0cfa2b35cd0ec1e45d4e861...72acb8b70d641c5f180d3612ec36796d712230e3
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/8d173dea5e5e04a0a0cfa2b35cd0ec1e45d4e861...72acb8b70d641c5f180d3612ec36796d712230e3
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/20220820/ae7ebae9/attachment.html>
More information about the ghc-commits
mailing list