Skip to content

Commit 13be9fa

Browse files
committed
doc: add release note on dead global map variable deletion
Add a short release note blurb on linker dead-coding of global map variables. Updates #58645. Change-Id: Ibfdd3e2b2b78517db4245b1d7eedd5e75a643b47 Reviewed-on: https://go-review.googlesource.com/c/go/+/498575 Reviewed-by: Eli Bendersky <[email protected]> TryBot-Bypass: Than McIntosh <[email protected]>
1 parent 76bb0ca commit 13be9fa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/go1.21.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,11 @@ <h2 id="linker">Linker</h2>
190190
</p>
191191
<!-- CL 463395 -->
192192
<p>
193-
<!-- cmd/link: linker portion of dead map removal -->
193+
In Go 1.21 the linker (with help from the compiler) is now capable of
194+
deleting dead (unreferenced) global map variables, if the number of
195+
entries in the variable initializer is sufficiently large, and if the
196+
initializer expressions are side-effect free.
194197
</p>
195-
196198
<p>
197199
TODO: complete this section, or delete if not needed
198200
</p>

0 commit comments

Comments
 (0)