Skip to content

Commit 07f61d0

Browse files
committed
Merge remote-tracking branch 'upstream/master' into 41884-fix
2 parents 03abc2d + 3dd5867 commit 07f61d0

File tree

1,838 files changed

+83990
-44044
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,838 files changed

+83990
-44044
lines changed

api/except.txt

Lines changed: 136 additions & 92 deletions
Large diffs are not rendered by default.

api/go1.16.txt

Lines changed: 481 additions & 0 deletions
Large diffs are not rendered by default.

api/next.txt

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +0,0 @@
1-
pkg unicode, const Version = "13.0.0"
2-
pkg unicode, var Chorasmian *RangeTable
3-
pkg unicode, var Dives_Akuru *RangeTable
4-
pkg unicode, var Khitan_Small_Script *RangeTable
5-
pkg unicode, var Yezidi *RangeTable
6-
pkg text/template/parse, const NodeComment = 20
7-
pkg text/template/parse, const NodeComment NodeType
8-
pkg text/template/parse, const ParseComments = 1
9-
pkg text/template/parse, const ParseComments Mode
10-
pkg text/template/parse, method (*CommentNode) Copy() Node
11-
pkg text/template/parse, method (*CommentNode) String() string
12-
pkg text/template/parse, method (CommentNode) Position() Pos
13-
pkg text/template/parse, method (CommentNode) Type() NodeType
14-
pkg text/template/parse, type CommentNode struct
15-
pkg text/template/parse, type CommentNode struct, Text string
16-
pkg text/template/parse, type CommentNode struct, embedded NodeType
17-
pkg text/template/parse, type CommentNode struct, embedded Pos
18-
pkg text/template/parse, type Mode uint
19-
pkg text/template/parse, type Tree struct, Mode Mode

doc/articles/race_detector.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ <h2 id="Supported_Systems">Supported Systems</h2>
418418
<code>linux/amd64</code>, <code>linux/ppc64le</code>,
419419
<code>linux/arm64</code>, <code>freebsd/amd64</code>,
420420
<code>netbsd/amd64</code>, <code>darwin/amd64</code>,
421-
and <code>windows/amd64</code>.
421+
<code>darwin/arm64</code>, and <code>windows/amd64</code>.
422422
</p>
423423

424424
<h2 id="Runtime_Overheads">Runtime Overhead</h2>

doc/contribute.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -947,10 +947,18 @@ <h3 id="votes">Voting conventions</h3>
947947
</li>
948948
</ul>
949949

950+
<p>
951+
At least two maintainers must approve of the change, and at least one
952+
of those maintainers must +2 the change.
953+
The second maintainer may cast a vote of Trust+1, meaning that the
954+
change looks basically OK, but that the maintainer hasn't done the
955+
detailed review required for a +2 vote.
956+
</p>
957+
950958
<h3 id="submit">Submitting an approved change</h3>
951959

952960
<p>
953-
After the code has been +2'ed, an approver will
961+
After the code has been +2'ed and Trust+1'ed, an approver will
954962
apply it to the master branch using the Gerrit user interface.
955963
This is called "submitting the change".
956964
</p>
@@ -1015,13 +1023,13 @@ <h3 id="copyright">Copyright headers</h3>
10151023
</p>
10161024

10171025
<pre>
1018-
// Copyright 2020 The Go Authors. All rights reserved.
1026+
// Copyright 2021 The Go Authors. All rights reserved.
10191027
// Use of this source code is governed by a BSD-style
10201028
// license that can be found in the LICENSE file.
10211029
</pre>
10221030

10231031
<p>
1024-
(Use the current year if you're reading this in 2021 or beyond.)
1032+
(Use the current year if you're reading this in 2022 or beyond.)
10251033
Files in the repository are copyrighted the year they are added.
10261034
Do not update the copyright year on files that you change.
10271035
</p>
@@ -1121,7 +1129,7 @@ <h3 id="quick_test">Quickly testing your changes</h3>
11211129
might require a newer version than the stable one you have installed).
11221130

11231131
<pre>
1124-
$ cd $GODIR/src/hash/sha1
1132+
$ cd $GODIR/src/crypto/sha1
11251133
$ [make changes...]
11261134
$ $GODIR/bin/go test .
11271135
</pre>

doc/diagnostics.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,8 @@ <h3 id="godebug">GODEBUG</h3>
454454
<li>GODEBUG=gctrace=1 prints garbage collector events at
455455
each collection, summarizing the amount of memory collected
456456
and the length of the pause.</li>
457+
<li>GODEBUG=inittrace=1 prints a summary of execution time and memory allocation
458+
information for completed package initialization work.</li>
457459
<li>GODEBUG=schedtrace=X prints scheduling events every X milliseconds.</li>
458460
</ul>
459461

doc/go1.15.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,19 @@ <h3 id="cgo">Cgo</h3>
397397
documentation</a> for more information.
398398
</p>
399399

400+
<p><!-- CL 250940 -->
401+
In Go 1.15.3 and later, cgo will not permit Go code to allocate an
402+
undefined struct type (a C struct defined as just <code>struct
403+
S;</code> or similar) on the stack or heap.
404+
Go code will only be permitted to use pointers to those types.
405+
Allocating an instance of such a struct and passing a pointer, or a
406+
full struct value, to C code was always unsafe and unlikely to work
407+
correctly; it is now forbidden.
408+
The fix is to either rewrite the Go code to use only pointers, or to
409+
ensure that the Go code sees the full definition of the struct by
410+
including the appropriate C header file.
411+
</p>
412+
400413
<h3 id="commonname">X.509 CommonName deprecation</h3>
401414

402415
<p><!-- CL 231379 -->

0 commit comments

Comments
 (0)