Skip to content

Commit ef5b113

Browse files
committed
all: merge master into strconv.ParseCompex
2 parents d336057 + b1a48af commit ef5b113

File tree

1,892 files changed

+244403
-339519
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,892 files changed

+244403
-339519
lines changed

.gitattributes

+6
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,9 @@
88
# See golang.org/issue/9281
99

1010
* -text
11+
12+
# The only exception is Windows files that must absolutely be CRLF or
13+
# might not work. Batch files are known to have multiple bugs when run
14+
# with LF endings. See golang.org/issue/37791 for more information.
15+
16+
*.bat text eol=crlf

AUTHORS

+4
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ Alexei Sholik <[email protected]>
9696
Alexey Borzenkov <[email protected]>
9797
Alexey Neganov <[email protected]>
9898
Alexey Palazhchenko <[email protected]>
99+
Alexey Semenyuk <[email protected]>
99100
Alexis Hildebrandt <[email protected]>
100101
Ali Rizvi-Santiago <[email protected]>
101102
Aliaksandr Valialkin <[email protected]>
@@ -144,6 +145,7 @@ Andy Davis <[email protected]>
144145
Andy Finkenstadt <[email protected]>
145146
Andy Lindeman <[email protected]>
146147
Andy Maloney <[email protected]>
148+
147149
Andy Walker <[email protected]>
148150
Anfernee Yongkun Gui <[email protected]>
149151
Angelo Bulfone <[email protected]>
@@ -1143,6 +1145,7 @@ Pontus Leitzler <[email protected]>
11431145
Prashant Varanasi <[email protected]>
11441146
Pravendra Singh <[email protected]>
11451147
Preetam Jinka <[email protected]>
1148+
Qais Patankar <[email protected]>
11461149
Qiuxuan Zhu <[email protected]>
11471150
Qualcomm Data Center, Inc.
11481151
Quan Tran <[email protected]>
@@ -1308,6 +1311,7 @@ Szabolcs Nagy <[email protected]>
13081311
Taavi Kivisik <[email protected]>
13091312
Tad Fisher <[email protected]>
13101313
Tad Glines <[email protected]>
1314+
Tailscale Inc.
13111315
Taj Khattra <[email protected]>
13121316
Takayoshi Nishida <[email protected]>
13131317
Takeshi YAMANASHI <[email protected]>

CONTRIBUTORS

+25-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
Aamir Khan <[email protected]>
2828
Aaron Beitch <[email protected]>
29+
Aaron Bieber <[email protected]>
2930
Aaron Cannon <[email protected]>
3031
Aaron France <[email protected]>
3132
Aaron Jacobs <[email protected]>
@@ -48,6 +49,7 @@ Adam Shannon <[email protected]>
4849
Adam Shelton <[email protected]>
4950
Adam Sindelar <[email protected]>
5051
Adam Thomason <[email protected]>
52+
Adam Williams <[email protected]>
5153
Adam Woodbeck <[email protected]>
5254
Adarsh Ravichandran <[email protected]>
5355
Aditya Harindar <[email protected]>
@@ -143,6 +145,7 @@ Alexey Borzenkov <[email protected]>
143145
Alexey Naidonov <[email protected]>
144146
Alexey Neganov <[email protected]>
145147
Alexey Palazhchenko <[email protected]>
148+
Alexey Semenyuk <[email protected]>
146149
Alexis Hildebrandt <[email protected]>
147150
Alexis Hunt <[email protected]>
148151
Alexis Imperial-Legrand <[email protected]>
@@ -214,6 +217,7 @@ Andy Davis <[email protected]>
214217
Andy Finkenstadt <[email protected]>
215218
Andy Lindeman <[email protected]>
216219
Andy Maloney <[email protected]>
220+
217221
Andy Walker <[email protected]>
218222
Andzej Maciusovic <[email protected]>
219223
Anfernee Yongkun Gui <[email protected]>
@@ -276,6 +280,7 @@ Awn Umar <[email protected]>
276280
Axel Wagner <[email protected]>
277281
Ayan George <[email protected]>
278282
Ayanamist Yang <[email protected]>
283+
Ayke van Laethem <[email protected]>
279284
Aymerick Jéhanne <[email protected]>
280285
Azat Kaumov <[email protected]>
281286
Baiju Muthukadan <[email protected]>
@@ -338,6 +343,7 @@ Brad Jones <[email protected]>
338343
Brad Morgan <[email protected]>
339344
Brad Whitaker <[email protected]>
340345
Braden Bassingthwaite <[email protected]>
346+
Bradford Lamson-Scribner <[email protected]>
341347
Bradley Falzon <[email protected]>
342348
Brady Catherman <[email protected]>
343349
Brady Sullivan <[email protected]>
@@ -351,6 +357,7 @@ Brett Cannon <[email protected]>
351357
Brett Merrill <[email protected]>
352358
Brian Dellisanti <[email protected]>
353359
Brian Downs <[email protected]>
360+
Brian Falk <[email protected]>
354361
Brian G. Merrell <[email protected]>
355362
356363
Brian Kennedy <[email protected]>
@@ -404,6 +411,7 @@ Charles L. Dorian <[email protected]>
404411
Charles Lee <[email protected]>
405412
Charles Weill <[email protected]>
406413
Chauncy Cullitan <[email protected]>
414+
Chen Zhihan <[email protected]>
407415
Cherry Zhang <[email protected]>
408416
Chew Choon Keat <[email protected]>
409417
Cholerae Hu <[email protected]>
@@ -442,6 +450,7 @@ Christopher Cahoon <[email protected]>
442450
Christopher Guiney <[email protected]>
443451
Christopher Henderson <[email protected]>
444452
Christopher Koch <[email protected]>
453+
Christopher Loessl <[email protected]>
445454
Christopher Nelson <[email protected]>
446455
Christopher Nielsen <[email protected]>
447456
Christopher Redden <[email protected]>
@@ -739,12 +748,14 @@ Frank Somers <[email protected]>
739748
Frederic Guillot <[email protected]>
740749
Frederick Kelly Mayle III <[email protected]>
741750
Frederik Ring <[email protected]>
751+
Frederik Zipp <[email protected]>
742752
Fredrik Enestad <[email protected]>
743753
Fredrik Forsmo <[email protected]>
744754
Fredrik Wallgren <[email protected]>
745755
Frew Schmidt <[email protected]>
746756
747757
Frits van Bommel <[email protected]>
758+
Fujimoto Kyosuke <[email protected]>
748759
Fumitoshi Ukai <[email protected]>
749760
G. Hussain Chinoy <[email protected]>
750761
Gaal Yahas <[email protected]>
@@ -803,6 +814,7 @@ GitHub User @frennkie (6499251) <[email protected]>
803814
GitHub User @hengwu0 (41297446) <[email protected]>
804815
GitHub User @itchyny (375258) <[email protected]>
805816
GitHub User @jinmiaoluo (39730824) <[email protected]>
817+
GitHub User @jopbrown (6345470) <[email protected]>
806818
GitHub User @kazyshr (30496953) <[email protected]>
807819
GitHub User @kc1212 (1093806) <[email protected]>
808820
GitHub User @Kropekk (13366453) <[email protected]>
@@ -828,6 +840,7 @@ GitHub User @uhei (2116845) <[email protected]>
828840
GitHub User @uropek (39370426) <[email protected]>
829841
GitHub User @utkarsh-extc (53217283) <[email protected]>
830842
GitHub User @witchard (4994659) <[email protected]>
843+
GitHub User @yah01 (12216890) <[email protected]>
831844
GitHub User @yuanhh (1298735) <[email protected]>
832845
GitHub User @zikaeroh (48577114) <[email protected]>
833846
GitHub User @ZZMarquis (7624583) <[email protected]>
@@ -897,6 +910,7 @@ Heschi Kreinick <[email protected]>
897910
Hidetatsu Yaginuma <[email protected]>
898911
Hilko Bengen <[email protected]>
899912
Hiroaki Nakamura <[email protected]>
913+
Hiromichi Ema <[email protected]>
900914
Hironao OTSUBO <[email protected]>
901915
Hiroshi Ioka <[email protected]>
902916
Hitoshi Mitake <[email protected]>
@@ -944,7 +958,7 @@ Irfan Sharif <[email protected]>
944958
Irieda Noboru <[email protected]>
945959
Isaac Ardis <[email protected]>
946960
Isaac Wagner <[email protected]>
947-
Isfan Azhabil <isfan.azhabil@tokopedia.com>
961+
Isfan Azhabil <isfanazhabil@gmail.com>
948962
949963
Issac Trotts <[email protected]>
950964
Ivan Babrou <[email protected]>
@@ -973,6 +987,7 @@ Jakob Borg <[email protected]>
973987
Jakob Weisblat <[email protected]>
974988
Jakub Čajka <[email protected]>
975989
Jakub Ryszard Czarnowicz <[email protected]>
990+
Jamal Carvalho <[email protected]>
976991
James Aguilar <[email protected]>
977992
James Bardin <[email protected]>
978993
James Chacon <[email protected]>
@@ -1020,6 +1035,7 @@ Jannis Andrija Schnitzer <[email protected]>
10201035
Jared Culp <[email protected]>
10211036
Jaroslavas Počepko <[email protected]>
10221037
Jason A. Donenfeld <[email protected]>
1038+
Jason Baker <[email protected]>
10231039
Jason Barnett <[email protected]>
10241040
Jason Buberel <[email protected]>
10251041
Jason Chu <[email protected]>
@@ -1213,6 +1229,7 @@ Kamil Chmielewski <[email protected]>
12131229
12141230
Kamil Rytarowski <[email protected]>
12151231
1232+
Kanta Ebihara <[email protected]>
12161233
Karan Dhiman <[email protected]>
12171234
Karel Pazdera <[email protected]>
12181235
Karoly Negyesi <[email protected]>
@@ -1252,6 +1269,7 @@ Ketan Parmar <[email protected]>
12521269
Kevan Swanberg <[email protected]>
12531270
Kevin Ballard <[email protected]>
12541271
Kevin Burke <[email protected]>
1272+
Kévin Dunglas <[email protected]>
12551273
Kevin Gillette <[email protected]>
12561274
Kevin Kirsche <[email protected]>
12571275
@@ -1265,6 +1283,7 @@ Kim Yongbin <[email protected]>
12651283
Kir Kolyshkin <[email protected]>
12661284
Kirill Motkov <[email protected]>
12671285
Kirill Smelkov <[email protected]>
1286+
Kirill Tatchihin <[email protected]>
12681287
12691288
Kirklin McDonald <[email protected]>
12701289
Klaus Post <[email protected]>
@@ -1378,6 +1397,7 @@ Marcelo E. Magallon <[email protected]>
13781397
Marco Hennings <[email protected]>
13791398
Marcus Willock <[email protected]>
13801399
Marga Manterola <[email protected]>
1400+
Mariano Cano <[email protected]>
13811401
Marin Bašić <[email protected]>
13821402
Mario Arranz <[email protected]>
13831403
Marius A. Eriksen <[email protected]>
@@ -1949,6 +1969,7 @@ Sergey 'SnakE' Gromov <[email protected]>
19491969
Sergey Arseev <[email protected]>
19501970
Sergey Dobrodey <[email protected]>
19511971
Sergey Frolov <[email protected]>
1972+
Sergey Ivanov <[email protected]>
19521973
Sergey Lukjanov <[email protected]>
19531974
Sergey Mishin <[email protected]>
19541975
Sergey Mudrik <[email protected]>
@@ -2090,6 +2111,7 @@ Thomas Desrosiers <[email protected]>
20902111
Thomas Habets <[email protected]>
20912112
Thomas Kappler <[email protected]>
20922113
Thomas Meson <[email protected]>
2114+
Thomas Symborski <[email protected]>
20932115
Thomas Wanielista <[email protected]>
20942116
Thorben Krueger <[email protected]>
20952117
Thordur Bjornsson <[email protected]>
@@ -2130,6 +2152,7 @@ Tom Thorogood <[email protected]>
21302152
Tom Wilkie <[email protected]>
21312153
Tomas Dabasinskas <[email protected]>
21322154
Tommy Schaefer <[email protected]>
2155+
Tomohiro Kusumoto <[email protected]>
21332156
Tomoya Ishizaki <[email protected]>
21342157
Tonis Tiigi <[email protected]>
21352158
Tony Reix <[email protected]>
@@ -2240,6 +2263,7 @@ Xi Ruoyao <[email protected]>
22402263
22412264
Xiangdong Ji <[email protected]>
22422265
Xing Xing <[email protected]>
2266+
Xingqang Bai <[email protected]>
22432267
22442268
Xudong Zhang <[email protected]>
22452269
Xudong Zheng <[email protected]>

api/except.txt

-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ pkg os (linux-arm), const O_SYNC = 4096
88
pkg os (linux-arm-cgo), const O_SYNC = 4096
99
pkg os (linux-arm), const O_SYNC = 1052672
1010
pkg os (linux-arm-cgo), const O_SYNC = 1052672
11-
pkg syscall (darwin-386), const ImplementsGetwd = false
12-
pkg syscall (darwin-386), func Fchflags(string, int) error
13-
pkg syscall (darwin-386-cgo), const ImplementsGetwd = false
14-
pkg syscall (darwin-386-cgo), func Fchflags(string, int) error
1511
pkg syscall (darwin-amd64), const ImplementsGetwd = false
1612
pkg syscall (darwin-amd64), func Fchflags(string, int) error
1713
pkg syscall (darwin-amd64-cgo), const ImplementsGetwd = false

api/go1.14.txt

-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ pkg go/doc, type Example struct, Suffix string
150150
pkg go/doc, type Func struct, Examples []*Example
151151
pkg go/doc, type Package struct, Examples []*Example
152152
pkg go/doc, type Type struct, Examples []*Example
153-
pkg go/types, method (*Checker) LookupFieldOrMethod(Type, bool, *Package, string) (Object, []int, bool)
154153
pkg hash/maphash, func MakeSeed() Seed
155154
pkg hash/maphash, method (*Hash) BlockSize() int
156155
pkg hash/maphash, method (*Hash) Reset()

api/next.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pkg testing, method (*T) Deadline() (time.Time, bool)
2+
pkg time, method (*Ticker) Reset(Duration)
3+
pkg sync, method (*Map) LoadAndDelete(interface{}) (interface{}, bool)

doc/articles/race_detector.html

+43
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,38 @@ <h3 id="Primitive_unprotected_variable">Primitive unprotected variable</h3>
379379
}
380380
</pre>
381381

382+
<h3 id="Unsynchronized_send_and_close_operations">Unsynchronized send and close operations</h3>
383+
384+
<p>
385+
As this example demonstrates, unsynchronized send and close operations
386+
on the same channel can also be a race condition:
387+
</p>
388+
389+
<pre>
390+
c := make(chan struct{}) // or buffered channel
391+
392+
// The race detector cannot derive the happens before relation
393+
// for the following send and close operations. These two operations
394+
// are unsynchronized and happen concurrently.
395+
go func() { c <- struct{}{} }()
396+
close(c)
397+
</pre>
398+
399+
<p>
400+
According to the Go memory model, a send on a channel happens before
401+
the corresponding receive from that channel completes. To synchronize
402+
send and close operations, use a receive operation that guarantees
403+
the send is done before the close:
404+
</p>
405+
406+
<pre>
407+
c := make(chan struct{}) // or buffered channel
408+
409+
go func() { c <- struct{}{} }()
410+
<-c
411+
close(c)
412+
</pre>
413+
382414
<h2 id="Supported_Systems">Supported Systems</h2>
383415

384416
<p>
@@ -395,3 +427,14 @@ <h2 id="Runtime_Overheads">Runtime Overhead</h2>
395427
The cost of race detection varies by program, but for a typical program, memory
396428
usage may increase by 5-10x and execution time by 2-20x.
397429
</p>
430+
431+
<p>
432+
The race detector currently allocates an extra 8 bytes per <code>defer</code>
433+
and <code>recover</code> statement. Those extra allocations <a
434+
href="https://golang.org/issue/26813">are not recovered until the goroutine
435+
exits</a>. This means that if you have a long-running goroutine that is
436+
periodically issuing <code>defer</code> and <code>recover</code> calls,
437+
the program memory usage may grow without bound. These memory allocations
438+
will not show up in the output of <code>runtime.ReadMemStats</code> or
439+
<code>runtime/pprof</code>.
440+
</p>

doc/articles/wiki/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ <h2>Introducing Function Literals and Closures</h2>
674674
an <code>http.ResponseWriter</code> and <code>http.Request</code> (in other
675675
words, an <code>http.HandlerFunc</code>).
676676
The closure extracts the <code>title</code> from the request path, and
677-
validates it with the <code>TitleValidator</code> regexp. If the
677+
validates it with the <code>validPath</code> regexp. If the
678678
<code>title</code> is invalid, an error will be written to the
679679
<code>ResponseWriter</code> using the <code>http.NotFound</code> function.
680680
If the <code>title</code> is valid, the enclosed handler function

doc/asm.html

+25
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,31 @@ <h3 id="directives">Directives</h3>
437437
(For <code>TEXT</code> items.)
438438
This function is a closure so it uses its incoming context register.
439439
</li>
440+
<li>
441+
<code>LOCAL</code> = 128
442+
<br>
443+
This symbol is local to the dynamic shared object.
444+
</li>
445+
<li>
446+
<code>TLSBSS</code> = 256
447+
<br>
448+
(For <code>DATA</code> and <code>GLOBL</code> items.)
449+
Put this data in thread local storage.
450+
</li>
451+
<li>
452+
<code>NOFRAME</code> = 512
453+
<br>
454+
(For <code>TEXT</code> items.)
455+
Do not insert instructions to allocate a stack frame and save/restore the return
456+
address, even if this is not a leaf function.
457+
Only valid on functions that declare a frame size of 0.
458+
</li>
459+
<li>
460+
<code>TOPFRAME</code> = 2048
461+
<br>
462+
(For <code>TEXT</code> items.)
463+
Function is the top of the call stack. Traceback should stop at this function.
464+
</li>
440465
</ul>
441466

442467
<h3 id="runtime">Runtime Coordination</h3>

doc/cmd.html

-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
commands listed here.
5050
See the command docs for usage
5151
details.
52-
<br><br>
5352
</td>
5453
</tr>
5554

0 commit comments

Comments
 (0)