<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>



<style>img {
max-width: 100%; height: auto;
}
body {
font-size: 0.875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";'>
<div class="content">

<h3 style="margin-top: 20px; margin-bottom: 10px;">
Ben Gamari pushed to branch wip/exception-context
at <a href="https://gitlab.haskell.org/ghc/ghc" style="color: #1068bf; text-decoration: none;">Glasgow Haskell Compiler / GHC</a>
</h3>
<h4 style="margin-top: 10px; margin-bottom: 10px;">
Commits:
</h4>
<ul>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/c0d18614dc2e26d931c07612e4bc5731c8c1c381" style="color: #1068bf; text-decoration: none;">c0d18614</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2022-08-19T23:19:29-04:00</i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.8125rem; color: #303030; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid #dbdbdb;'>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.
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/ebc644c1721a309279a996f7ab2917cc8b8044a1" style="color: #1068bf; text-decoration: none;">ebc644c1</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2022-08-19T23:19:29-04:00</i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.8125rem; color: #303030; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid #dbdbdb;'>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.
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/9b26d780242d595b417da52131994d4743372b4b" style="color: #1068bf; text-decoration: none;">9b26d780</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2022-08-19T23:21:03-04:00</i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.8125rem; color: #303030; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid #dbdbdb;'>base: Clean up imports of GHC.ExecutionStack
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/c3383e5e552c4ddb058ed22a42813ad6e1feb64b" style="color: #1068bf; text-decoration: none;">c3383e5e</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2022-08-19T23:21:03-04:00</i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.8125rem; color: #303030; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid #dbdbdb;'>base: Clean up imports of GHC.Stack.CloneStack
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/95f5b0cd4c5370bb69623cc423a4766f487deec3" style="color: #1068bf; text-decoration: none;">95f5b0cd</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2022-08-19T23:21:03-04:00</i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.8125rem; color: #303030; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid #dbdbdb;'>base: Move prettyCallStack to GHC.Stack
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/8f77187c1b8fe3648e40429a0704af8227b269a8" style="color: #1068bf; text-decoration: none;">8f77187c</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2022-08-19T23:22:06-04:00</i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.8125rem; color: #303030; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid #dbdbdb;'>base: Move PrimMVar to GHC.MVar
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/b4113d28c360cc65bd55a9abd5711a9453e9199c" style="color: #1068bf; text-decoration: none;">b4113d28</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2022-08-19T23:22:06-04:00</i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.8125rem; color: #303030; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid #dbdbdb;'>base: Introduce exception context
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/d43c456f125ad689dc4fa6cbb5860b7301c02aae" style="color: #1068bf; text-decoration: none;">d43c456f</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2022-08-19T23:25:28-04:00</i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.8125rem; color: #303030; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid #dbdbdb;'>base: Introduce exception backtrace infrastructure
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/5772ed241257332e884bf2c09e97a477b5783904" style="color: #1068bf; text-decoration: none;">5772ed24</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2022-08-19T23:25:28-04:00</i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.8125rem; color: #303030; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid #dbdbdb;'>base: Collect backtraces in GHC.IO.throwIO
</pre>
</li>
<li>
<strong style="font-weight: bold;"><a href="https://gitlab.haskell.org/ghc/ghc/-/commit/8d173dea5e5e04a0a0cfa2b35cd0ec1e45d4e861" style="color: #1068bf; text-decoration: none;">8d173dea</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2022-08-19T23:25:28-04:00</i>
</div>
<pre class="commit-message" style='white-space: pre-wrap; display: block; font-size: 0.8125rem; color: #303030; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; border-radius: 2px; margin: 0; padding: 8px 12px; border: 1px solid #dbdbdb;'>base: Collect backtraces in GHC.Exception.throw
</pre>
</li>
</ul>
<h4 style="margin-top: 10px; margin-bottom: 10px;">30 changed files:</h4>
<ul>
<li class="file-stats">
<a href="#db697f6aea9f93f1583f1d5c62d25570a1e07f73" style="color: #1068bf; text-decoration: none;">
compiler/GHC/Cmm/CLabel.hs
</a>
</li>
<li class="file-stats">
<a href="#71e696f452eb493722d70306c6f304fc9b2f6a95" style="color: #1068bf; text-decoration: none;">
compiler/GHC/Cmm/Parser.y
</a>
</li>
<li class="file-stats">
<a href="#9df7e695170800345fb44916a8e8f4b8f3c55be0" style="color: #1068bf; text-decoration: none;">
compiler/GHC/Driver/CodeOutput.hs
</a>
</li>
<li class="file-stats">
<a href="#9a679a2680ef6061397f1987091ea9f96ffe095d" style="color: #1068bf; text-decoration: none;">
compiler/GHC/Driver/Main.hs
</a>
</li>
<li class="file-stats">
<a href="#474afbd1996fa06b8bc9410a2805103be57860f7" style="color: #1068bf; text-decoration: none;">
<span class="new-file">
+
compiler/GHC/StgToCmm/InfoTableProv.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#8390b439f37437a2642e4e31bd6e7e91438915d1" style="color: #1068bf; text-decoration: none;">
compiler/GHC/StgToCmm/Prof.hs
</a>
</li>
<li class="file-stats">
<a href="#0f33fd88c617246c7f89c4477d2d1d24f942df23" style="color: #1068bf; text-decoration: none;">
compiler/ghc.cabal.in
</a>
</li>
<li class="file-stats">
<a href="#484e50173b324b5842d294580ec9ed8a7b0d5d38" style="color: #1068bf; text-decoration: none;">
libraries/base/GHC/Conc/Sync.hs
</a>
</li>
<li class="file-stats">
<a href="#929bd0ab1819f50a965ae7ee6f28c2def1054cc8" style="color: #1068bf; text-decoration: none;">
libraries/base/GHC/Exception.hs
</a>
</li>
<li class="file-stats">
<a href="#7cfcb0b96abd4b74bc589a307600d5b086f2de9f" style="color: #1068bf; text-decoration: none;">
<span class="new-file">
+
libraries/base/GHC/Exception/Backtrace.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#f2770d22c9f7ba87d4d0d9b2900286042724bb08" style="color: #1068bf; text-decoration: none;">
<span class="new-file">
+
libraries/base/GHC/Exception/Backtrace.hs-boot
</span>
</a>
</li>
<li class="file-stats">
<a href="#c02b12166960d7367ddbc558a80106f2126996a9" style="color: #1068bf; text-decoration: none;">
<span class="new-file">
+
libraries/base/GHC/Exception/Context.hs
</span>
</a>
</li>
<li class="file-stats">
<a href="#81875dba753b19550a8d4f960f1eaa5e413e26b8" style="color: #1068bf; text-decoration: none;">
<span class="new-file">
+
libraries/base/GHC/Exception/Context.hs-boot
</span>
</a>
</li>
<li class="file-stats">
<a href="#6e8212240e47488bd66c7d99dad261a46bf6631a" style="color: #1068bf; text-decoration: none;">
libraries/base/GHC/Exception/Type.hs
</a>
</li>
<li class="file-stats">
<a href="#b85a82e94e17171283d2128ceab8ebfac92a3c39" style="color: #1068bf; text-decoration: none;">
libraries/base/GHC/ExecutionStack.hs
</a>
</li>
<li class="file-stats">
<a href="#0f60c2c2fcc269f7374b8e91c8131396850b37aa" style="color: #1068bf; text-decoration: none;">
libraries/base/GHC/ExecutionStack/Internal.hsc
</a>
</li>
<li class="file-stats">
<a href="#36b8946721cfafb20918a66b3ffb21b3a4c37935" style="color: #1068bf; text-decoration: none;">
libraries/base/GHC/IO.hs
</a>
</li>
<li class="file-stats">
<a href="#b38856d310248d4769bfaa6042cdc64d01b27ee0" style="color: #1068bf; text-decoration: none;">
libraries/base/GHC/InfoProv.hsc
</a>
</li>
<li class="file-stats">
<a href="#c866a27ab01bf0a002d764b5e1ee5f0d6b2dd634" style="color: #1068bf; text-decoration: none;">
libraries/base/GHC/MVar.hs
</a>
</li>
<li class="file-stats">
<a href="#16a13777c8eded182bde3f937020517cfe920930" style="color: #1068bf; text-decoration: none;">
libraries/base/GHC/Stack.hs
</a>
</li>
<li class="file-stats">
<a href="#8183bbc8e09e78856bdb909fa3311c077ecc5e57" style="color: #1068bf; text-decoration: none;">
<span class="new-file">
+
libraries/base/GHC/Stack.hs-boot
</span>
</a>
</li>
<li class="file-stats">
<a href="#7933e581b960dd986dbabb9fbde2645bcdad01be" style="color: #1068bf; text-decoration: none;">
libraries/base/GHC/Stack/CCS.hs-boot
</a>
</li>
<li class="file-stats">
<a href="#9cc5887db9e4af2e8d686d9953728d48fd50dd64" style="color: #1068bf; text-decoration: none;">
libraries/base/GHC/Stack/CloneStack.hs
</a>
</li>
<li class="file-stats">
<a href="#b7cfb47853ef95330e499ca0c5b90964744d101f" style="color: #1068bf; text-decoration: none;">
libraries/base/base.cabal
</a>
</li>
<li class="file-stats">
<a href="#200c4c756172f6b340836fe30c1d59fde1d17523" style="color: #1068bf; text-decoration: none;">
rts/IPE.c
</a>
</li>
<li class="file-stats">
<a href="#260aaa1045176812c4f20ed18734479ba43bbbe6" style="color: #1068bf; text-decoration: none;">
rts/IPE.h
</a>
</li>
<li class="file-stats">
<a href="#9ed11d0519762dae04656481b089dbb5b05acf98" style="color: #1068bf; text-decoration: none;">
rts/RtsStartup.c
</a>
</li>
<li class="file-stats">
<a href="#050d739b5c42d009648d099fb66bae809e83482e" style="color: #1068bf; text-decoration: none;">
rts/Trace.c
</a>
</li>
<li class="file-stats">
<a href="#4bef7d0c5d4ce46744aaacac2800349746d7e44f" style="color: #1068bf; text-decoration: none;">
rts/eventlog/EventLog.c
</a>
</li>
<li class="file-stats">
<a href="#71b34aa09551eb8e1b64680080d75efe1d457ddb" style="color: #1068bf; text-decoration: none;">
rts/include/rts/IPE.h
</a>
</li>
</ul>
<h5 style="margin-top: 10px; margin-bottom: 10px; font-size: 0.875rem;">The diff was not included because it is too large.</h5>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">

<br>
<a href="https://gitlab.haskell.org/ghc/ghc/-/compare/2d00c7af4a4ac3251ccf1bdf2b2fa808b0de5255...8d173dea5e5e04a0a0cfa2b35cd0ec1e45d4e861" style="color: #1068bf; text-decoration: none;">View it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.haskell.org.
If you'd like to receive fewer emails, you can
adjust your notification settings.



</p>
</div>
</body>
</html>