<!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/T22077
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/585ff3006f7b95518c55399a399d8bb87167335d" style="color: #1068bf; text-decoration: none;">585ff300</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2022-08-25T10:53:52-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/c0869845f27fd6e1377c7f771a9c842ed769cb0e" style="color: #1068bf; text-decoration: none;">c0869845</a></strong>
<div>
<span>by Ben Gamari</span>
<i>at 2022-08-25T10:53:52-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>
</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="#b38856d310248d4769bfaa6042cdc64d01b27ee0" style="color: #1068bf; text-decoration: none;">
libraries/base/GHC/InfoProv.hsc
</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="#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="#1ce50078fc531487782432592488ae95c6156df4" style="color: #1068bf; text-decoration: none;">
rts/include/Cmm.h
</a>
</li>
<li class="file-stats">
<a href="#2c9d1869cf5d3b9fec1ccc583a5ade7b3b3f4d19" style="color: #1068bf; text-decoration: none;">
rts/include/Rts.h
</a>
</li>
<li class="file-stats">
<a href="#71b34aa09551eb8e1b64680080d75efe1d457ddb" style="color: #1068bf; text-decoration: none;">
rts/include/rts/IPE.h
</a>
</li>
<li class="file-stats">
<a href="#5d16d2b1e39374d5bc4e4c5edaf25abde7c6b10a" style="color: #1068bf; text-decoration: none;">
rts/include/stg/SMP.h
</a>
</li>
<li class="file-stats">
<a href="#371d3c3c9fad484c1163aa733d70507ce33084c9" style="color: #1068bf; text-decoration: none;">
rts/sm/NonMoving.h
</a>
</li>
<li class="file-stats">
<a href="#d4c054f391601378143168c916529135eaed17d6" style="color: #1068bf; text-decoration: none;">
testsuite/tests/profiling/should_run/staticcallstack001.stdout
</a>
</li>
<li class="file-stats">
<a href="#937d6daebde08d678e7c18b9624159273e804b92" style="color: #1068bf; text-decoration: none;">
testsuite/tests/profiling/should_run/staticcallstack002.stdout
</a>
</li>
<li class="file-stats">
<a href="#5ced844c5529162410276a1236ca9b8e7186490c" style="color: #1068bf; text-decoration: none;">
testsuite/tests/rts/all.T
</a>
</li>
<li class="file-stats">
<a href="#db3adafa05958eb8a62ade1b278b3eb47e07b79f" style="color: #1068bf; text-decoration: none;">
<span class="new-file">
+
testsuite/tests/rts/ipe/all.T
</span>
</a>
</li>
<li class="file-stats">
<a href="#b53501bc7d80cf29643568a3a22d4fa9035ab081" style="color: #1068bf; text-decoration: none;">
<span class="new-file">
+
testsuite/tests/rts/ipe/ipeEventLog.c
</span>
</a>
</li>
<li class="file-stats">
<a href="#46bc48827377c2e4fa4d51ff9ac959b7db64010d" style="color: #1068bf; text-decoration: none;">
<span class="new-file">
+
testsuite/tests/rts/ipe/ipeEventLog.stderr
</span>
</a>
</li>
<li class="file-stats">
<a href="#dbc58f488a64d1218ea266153868432f20822c5d" style="color: #1068bf; text-decoration: none;">
testsuite/tests/rts/ipeEventLog_fromMap.c

testsuite/tests/rts/ipe/ipeEventLog_fromMap.c
</a>
</li>
<li class="file-stats">
<a href="#33823cf5bee65d3644033c4d69dd10facd5a0bdd" style="color: #1068bf; text-decoration: none;">
<span class="new-file">
+
testsuite/tests/rts/ipe/ipeEventLog_fromMap.stderr
</span>
</a>
</li>
<li class="file-stats">
<a href="#e36daca86ec253d21f616c60e802ae540d9c78a3" style="color: #1068bf; text-decoration: none;">
testsuite/tests/rts/ipeMap.c

testsuite/tests/rts/ipe/ipeMap.c
</a>
</li>
<li class="file-stats">
<a href="#70caac6657c167f11656c0bc9fb76ad4f67004b7" style="color: #1068bf; text-decoration: none;">
testsuite/tests/rts/ipeEventLog_lib.c

testsuite/tests/rts/ipe/ipe_lib.c
</a>
</li>
<li class="file-stats">
<a href="#04d00bc8061b44cfca10a41ee95d63437773a0d4" style="color: #1068bf; text-decoration: none;">
<span class="new-file">
+
testsuite/tests/rts/ipe/ipe_lib.h
</span>
</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/734e4ef27fe8108ab888943bcca0d9b03de5de44...c0869845f27fd6e1377c7f771a9c842ed769cb0e" 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>