Skip to content

Commit

Permalink
doc: add release note on dead global map variable deletion
Browse files Browse the repository at this point in the history
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 <eliben@google.com>
TryBot-Bypass: Than McIntosh <thanm@google.com>
  • Loading branch information
thanm committed May 26, 2023
1 parent 76bb0ca commit 13be9fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/go1.21.html
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,11 @@ <h2 id="linker">Linker</h2>
</p>
<!-- CL 463395 -->
<p>
<!-- cmd/link: linker portion of dead map removal -->
In Go 1.21 the linker (with help from the compiler) is now capable of
deleting dead (unreferenced) global map variables, if the number of
entries in the variable initializer is sufficiently large, and if the
initializer expressions are side-effect free.
</p>

<p>
TODO: complete this section, or delete if not needed
</p>
Expand Down

0 comments on commit 13be9fa

Please sign in to comment.