Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #1

Merged
merged 546 commits into from
May 16, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
546 commits
Select commit Hold shift + click to select a range
a28a942
cmd/compile: add unsigned divisibility rules
bmkessler Mar 10, 2019
a74e012
cmd/link/internal/ld: consolidate macho platform setup
eliasnaur Apr 27, 2019
096ab3c
cmd/link/internal/ld,syscall: drop $INODE64 suffixes on simulators
eliasnaur Apr 27, 2019
4fdeb73
cmd/link/internal/ld,syscall: replace getfsstat64 with getfsstat
eliasnaur Apr 27, 2019
e85d619
cmd/go/internal/renameio: use ERROR_ACCESS_DENIED to check for errors
alexbrainman Apr 27, 2019
049c8db
syscall: allow setting security attributes on processes
zx2c4 Apr 27, 2019
6b69230
runtime: remove spurious register loads for openbsd/amd64 kqueue
4a6f656c Apr 28, 2019
50ad094
cmd/compile: intrinsify math/bits.Add64 for ppc64x
ceseo Apr 24, 2019
d016330
runtime: whitelist debugCall32..debugCall65536 in debugCallCheck
aarzilli Feb 5, 2019
203b80a
strconv: Document ParseFloat's special cases
msoedov Apr 28, 2019
3cf1d77
cmd/go: implement Go checksum database support
rsc Apr 26, 2019
45ed3db
encoding/json: add a Fuzz function
Apr 26, 2019
a27ede0
all: remove a few unused parameters
mvdan Apr 28, 2019
db1514c
net/http: remove "number:" from Response.Status string
dmitshur Apr 29, 2019
76659e4
cmd/link/internal/s390x: fix s390x build
bradfitz Apr 29, 2019
cbf90b0
net: correct docs of KeepAlive field in Dialer type
gmichelo Dec 30, 2018
9308637
misc/wasm: fix command line arguments containing multi-byte characters
neelance Apr 25, 2019
08b956f
runtime: initialise cpu.HWCap on openbsd/arm64
4a6f656c Apr 28, 2019
8c1f785
runtime: support all as parameter in gdb goroutine commands.
haosdent Apr 29, 2019
06c9ccd
os/exec: always set SYSTEMROOT on Windows if not listed in Cmd.Env
bradfitz Apr 29, 2019
6ee8324
runtime/cgo: ignore missing Info.plist files on iOS
eliasnaur Apr 28, 2019
2b8cbc3
syscall: don't return EINVAL on zero Chmod mode on Windows
bradfitz Apr 29, 2019
fbc6a97
testing: delay flag registration; move to an Init function
cespare Apr 24, 2019
d5014ec
runtime: make mmap return 0 instead of -1 on aix/ppc64
Apr 29, 2019
ccbc9a3
cmd/go: add XCOFF format handler for go version
Apr 29, 2019
98c5a56
runtime: account for callbacks in checkdead on Windows
ianlancetaylor Apr 26, 2019
998cc2a
cmd,runtime: enable cgo for openbsd/arm64
4a6f656c Apr 29, 2019
ee59c06
cmd/compile: evaluate map initializers incrementally
randall77 Apr 29, 2019
d021dd6
cmd/go: add test of $GONOPROXY, $GONOSUMDB behavior
rsc Apr 29, 2019
dcb8482
encoding/json: fix Unmarshal hang on recursive pointers
cuonglm Apr 29, 2019
c2d9eea
runtime: do not use heap arena hints on wasm
neelance Apr 28, 2019
203e188
cmd/internal/obj/wasm: cache SP in a local
neelance Apr 26, 2019
8e28cd1
cmd/go/internal/modfetch: fix concurrent read/write race in modfetch
rsc Apr 30, 2019
858064f
encoding/csv: add a Fuzz function
elwinar Apr 30, 2019
12aec55
cmd/go: say to confirm import path when it's not found
tbpg Apr 26, 2019
4ad1355
html: add a Fuzz function
elwinar Apr 30, 2019
e0ac75d
cmd/dist: disable cgo for darwin/386
bradfitz Apr 30, 2019
9f12e2e
runtime: implement pthread functions for darwin/arm64
eliasnaur Apr 30, 2019
0c9e0c2
cmd/link: add .go.buildinfo in XCOFF symbol table
Apr 29, 2019
f686a28
all: add new GOOS=illumos, split out of GOOS=solaris
Apr 29, 2019
1fd1408
runtime: fix data sizes for res_search results
randall77 Apr 30, 2019
a8d0047
cmd/go/internal/modcmd: allow mod download without go.mod
oiooj Jan 15, 2019
73cb9a1
all: refer to map elements as elements instead of values
josharian Apr 22, 2019
55d690d
encoding/gob: adding missing fuzz skip to one of the fuzz tests
bradfitz Apr 30, 2019
d7edc91
cmd/dist: set the default external linker on platforms without gcc
eliasnaur Apr 30, 2019
888bac1
cmd/dist: detect GOHOSTARCH on iOS
eliasnaur Apr 30, 2019
62ddf7d
cmd/go: derive executable name from package path in 'go run'
Apr 24, 2019
8e4f1a7
time: look for zoneinfo.zip in GOROOT
eliasnaur Apr 30, 2019
c66ab9b
cmd/go: query modules in parallel
Apr 18, 2019
88548d0
net/http: make Server return 501 for unsupported transfer-encodings
odeke-em Mar 11, 2019
8bde43e
cmd/go,cmd/internal/sys,cmd/link: skip Go build ids for externally li…
eliasnaur Apr 30, 2019
70b890c
cmd/go/internal/modfetch/codehost: disable fetch of server-resolved c…
rsc Apr 30, 2019
85387aa
cmd/compile: remove dynamic entry handling from sinit/maplit
randall77 Apr 30, 2019
08318f5
os: fix tests on self-hosted Go builds
eliasnaur Apr 30, 2019
720af3c
cmd/asm: reject BSWAPW on amd64
quasilyte Apr 30, 2019
e7d08b6
cmd/compile: fix line numbers for index panics
randall77 Apr 30, 2019
4d9dd35
cmd/compile: add signed divisibility rules
bmkessler Apr 5, 2019
65b89c3
cmd/go: make get -u upgrade only modules providing packages
Apr 21, 2019
6505b48
syscall: on wasm, do not use typed array asynchronously
neelance Apr 30, 2019
c706d42
net/http: add Transport.ReadBufferSize and WriteBufferSize
nirs Nov 7, 2017
43b9fcf
net/http: make Transport.MaxConnsPerHost work for HTTP/2
fraenkel Oct 6, 2018
ba978f5
internal/cpu: add detection for the new ECDSA and EDDSA capabilities …
wgo Apr 30, 2019
7ee2213
net: set DNSError.IsTemporary from addrinfoErrno errors
mvo5 May 1, 2019
b39daa7
os,time: fix tests on iOS
eliasnaur May 1, 2019
e30aa16
test: enable more memcombine tests for ppc64le
laboger May 1, 2019
40036a9
runtime: change the span allocation policy to first-fit
mknyszek Feb 5, 2019
ab5cee5
go/internal/gccgoimporter: skip new test with aliases with old gccgo
thanm May 1, 2019
b098c0f
cmd/compile/internal/ppc64: improve naming for ginsnop2
laboger May 1, 2019
45be353
index/suffixarray: add 32-bit implementation
rsc Jan 25, 2019
e56c73f
runtime: look for idle p to run current goroutine when switching to G…
dr2chase Nov 1, 2018
cbe2b14
cmd/go/internal/modfetch/codehost: fix pseudoversions for non-semver …
leitzler Apr 26, 2019
fad365b
cmd/go/internal/get: fix strayed verbose output on stdout
hyangah May 1, 2019
f0c383b
cmd/dist: only build exec wrappers when cross compiling
eliasnaur May 1, 2019
07f6894
misc/cgo/testcarchive: skip TestExtar on self-hosted iOS
eliasnaur May 1, 2019
3259bc4
strings, bytes: add ToValidUTF8
martisch Oct 13, 2018
40a6d0e
cmd/go: sort vendor/modules.txt package lists
rsc Apr 30, 2019
aaf40f8
cmd/compile: fix maplit init panics for dynamic entry
cuonglm May 1, 2019
e5f0d14
cmd/go/internal/web: fix log message
heschi May 1, 2019
762953b
cmd/compile: disable Go1.13 language features for -lang=go1.12 and below
griesemer May 1, 2019
74b3c50
errors: fix comment referencing the Wrapper interface
jcbwlkr May 2, 2019
2316784
doc/go1.13: start doc, note macOS, FreeBSD deprecations
rsc Apr 30, 2019
19f5c23
cmd/compile: remove outdate TODO in inl.go
cuonglm May 2, 2019
e4c0e9d
cmd/go: make modconv test more robust
oiooj May 2, 2019
f03b333
cmd/go/internal/modload: make 'list -u' consider current pseudoversion
leitzler Apr 29, 2019
d2c1263
cmd/dist: don't generate exec wrappers for compatible cross compiles
eliasnaur May 2, 2019
d2765de
cmd/link: support PIE mode with internal link on linux arm64
Sep 26, 2018
0a338f7
sort: simplify bootstrap
rsc Apr 30, 2019
bf35b7c
net/http: skip flaky TestTransportMaxConnsPerHost for now
bradfitz May 2, 2019
fe83731
reflect: MakeFunc: allow assignment conversions on values returned fr…
randall77 Apr 30, 2019
5aee621
cmd: update golang.org/x/sys dependency
FiloSottile May 2, 2019
16bf0d5
crypto/cipher: disable broken js/wasm test from nodejs v8 to v12 upgrade
bradfitz May 2, 2019
689ee11
math/big: document Int.String
bmkessler May 3, 2019
004fb5c
cmd/compile: fix isStaticCompositeLiteral reports wrong for struct field
cuonglm May 1, 2019
2c1b513
cmd/compile: add math/bits.{Add,Sub}64 intrinsics on s390x
mundaym Apr 30, 2019
bd384d4
misc/ios: don't refer to iostest.bash
eliasnaur May 3, 2019
9f51325
net: skip DNS tests on self-hosted Android
eliasnaur May 2, 2019
5e404b3
net/http: add Transport.Clone
bradfitz Apr 30, 2019
f5c43b9
net/http: add func NewRequestWithContext, Request.Clone
bradfitz Apr 29, 2019
2c67cdf
net/http: strip escaped password from error
wingyplus May 3, 2019
0a4d352
net/http: fix TestTransportMaxConnsPerHost flakes
fraenkel May 3, 2019
8b2bd6f
cmd/go: update go bug to be more consistent with Github issue template
myitcv Aug 2, 2018
1033065
runtime: add physHugePageSize
mknyszek Mar 29, 2019
7fcba81
runtime: remove sys.HugePageSize
mknyszek Apr 24, 2019
4a4e05b
cmd/compile,runtime/internal/atomic: add Load8
aclements Mar 28, 2019
59ea685
cmd/go: fix clang test break as a result of golang.org/cl/127495
myitcv May 3, 2019
170b8b4
all: add Unwrap and Is methods to various error types
neild Mar 27, 2019
12e6322
all: remove commented-out print statements
quasilyte Jan 31, 2019
ba9bc8e
syscall: support generating netbsd/arm64 files in mkall.sh
tklauser May 4, 2019
b41eee4
syscall: remove unused {dragonfly,illumos,solaris}64Bit constants
tklauser May 5, 2019
79f79c3
net/http: update bundled x/net/http2
bradfitz May 1, 2019
0bf1f02
errors: fix Is panics if target is uncomparable
cuonglm May 5, 2019
a921881
cmd/dist: delete unnecessary dirs from GOROOT on completion
josharian May 6, 2019
5003b62
html/template: add support for JavaScript modules
andybons May 5, 2019
d199369
cmd/compile: make numberlines line mismatch check ignore columns
dr2chase May 2, 2019
b98cecf
net: use same TCP Keep Alive interval between dial and accept
corona10 May 5, 2019
e642412
net/http: add support for SameSite=None
vsekhar May 6, 2019
cc5eaf9
cmd/internal/obj: write package path at compile time if possible
cherrymui May 1, 2019
e1f9e70
doc: document Go 1.11.10
andybons May 6, 2019
1560264
doc: document Go 1.12.5
andybons May 6, 2019
1ad2298
cmd/go/internal/modfile: make error message for module path more clear
oiooj May 2, 2019
9baa430
runtime: merge all treaps into one implementation
mknyszek Apr 29, 2019
fa8470a
runtime: make treap iteration more efficient
mknyszek May 1, 2019
a62b572
runtime: scavenge huge spans first
mknyszek Apr 29, 2019
f4a5ae5
runtime: track the number of free unscavenged huge pages
mknyszek Apr 29, 2019
5c15ed6
runtime: split spans during allocation without treap removal
mknyszek May 2, 2019
31c4e09
runtime: ensure free and unscavenged spans may be backed by huge pages
mknyszek Apr 18, 2019
04845fe
reflect: special-case panic message when returning Value{} from MakeF…
randall77 May 6, 2019
ed7f323
all: simplify code using "gofmt -s -w"
shuLhan Mar 9, 2019
6b1ac82
cmd/dist: allow builders to control granularity of test/ directory sh…
bradfitz May 5, 2019
2729cd0
net/url: add tests for URLHostname
desimone May 6, 2019
53374e7
crypto/ed25519: promote from golang.org/x/crypto/ed25519
FiloSottile May 2, 2019
3e7e254
cmd/go: simplify some modfetch code
ianlancetaylor May 4, 2019
a88cb1d
cmd/cgo: fix unexpected semicolon in rewritten line
rsc Apr 30, 2019
7feb313
cmd/go: fix sumdb test failure
oiooj May 2, 2019
8280455
cmd/go: don't print phdrs running "go version" on ELF files
ianlancetaylor May 6, 2019
49ad7bc
cmd/compile: note that some rules know the name of the opt pass
josharian May 6, 2019
dc0388c
cmd/compile: avoid compiler crash for recursive interface type
griesemer May 6, 2019
503e6cc
math/big: fix the bug in assembly implementation of shlVU on arm64
Mar 28, 2019
3403ee5
image/png: fix palette extension to handle 255 color images
zuercher May 6, 2019
2d32d36
reflect: add a test for Calling a Method of a direct interface type
cherrymui May 8, 2019
bc588d4
cmd/link/internal/ld: add missing Close
eliasnaur May 8, 2019
bc0c077
doc: update /doc/asm compiler output example
rsc May 7, 2019
4cd6c3b
cmd/link/internal/ld: bump macOS and macOS SDK version to 10.9
eliasnaur May 8, 2019
bef1534
doc: fixed some links
May 8, 2019
2625fef
api: update next.txt
bradfitz May 8, 2019
7f5434c
regexp: clarify docs re Submatch result
dvyukov May 7, 2019
5a2da56
math/big: stack allocate scaleDenom return value
jtolio May 6, 2019
19966e9
go/types: add CheckExpr function to type-check an expression
adonovan Oct 25, 2018
d21c7b7
cmd/go: disallow go.sum updates in -mod=readonly
marwan-at-work Mar 8, 2019
7498e8f
cmd/link: write memprofile in legacy format for compilebench
aclements May 8, 2019
591454c
internal/syscall/windows/sysdll: mark package as Windows-only
bradfitz May 8, 2019
0047353
cmd/compile: add countRule rewrite rule helper
josharian Mar 12, 2019
41df5ae
cmd/go: set the "generate" build tag in go generate, per design doc
bradfitz May 8, 2019
856b57e
cmd/go: diagnose go.mod and vendor out of sync in std and cmd
rsc Apr 30, 2019
f766b68
cmd/asm: accept TEXT f+0(SB) in -gensymabis mode
rsc Apr 30, 2019
fb63ed2
misc/android: silence adb output unless an error occurs
eliasnaur May 8, 2019
0793c81
cmd/link: fix link time regression in object file reading
thanm May 8, 2019
5286b2a
cmd/compile: test delve instead of gdb in ssa/debug_test.go
dr2chase May 8, 2019
b6f59cb
cmd/vet/all: update whitelist for vet fixes
rsc May 9, 2019
b56d1ba
cmd/compile: emit DWARF call_line attrs with data4 form on iOS
thanm Apr 30, 2019
d56199d
cmd/vendor: import vet fixes from x/tools
rsc May 9, 2019
eaa1c87
runtime: remove periodic scavenging
mknyszek Oct 18, 2018
fe67ea3
runtime: add background scavenger
mknyszek Oct 17, 2018
ff70494
runtime: split spans when scavenging if it's more than we need
mknyszek May 7, 2019
ffd7eba
cmd/internal/bio: rename Reader.Seek to MustSeek
rsc May 8, 2019
a44c3ed
all: document vendoring in the standard library
May 3, 2019
50a1d89
fmt: rename buffer.WriteByte to writeByte
rsc May 8, 2019
c514071
encoding/gob: rename encBuffer.WriteByte to writeByte
rsc May 8, 2019
0a2f72b
cmd/link: use standard-syntax struct tags in large-tag test
rsc May 8, 2019
cd03664
runtime: fix js/wasm lock implementation
mknyszek May 9, 2019
6ed2ec4
runtime: fix vet complaints for linux/386
rsc May 8, 2019
fe67ce2
runtime: fix vet complaints for linux/amd64
rsc May 8, 2019
1ea7644
runtime: fix vet complaints for linux/arm
rsc May 8, 2019
49f62af
runtime: fix vet complaints for linux/arm64, linux/mips*, linux/ppc64…
rsc May 8, 2019
60f6763
runtime: fix vet complaints for solaris/amd64, illumos/amd64
rsc May 8, 2019
b4a472b
syscall: fix vet complaints for all dragonfly, freebsd, netbsd, openbsd
rsc May 8, 2019
924c161
runtime: fix vet complaints for all freebsd, netbsd, openbsd
rsc May 8, 2019
13723d4
runtime, crypto/x509: fix vet complaints for all windows
rsc May 8, 2019
56c1cf3
runtime: fix vet complaints for all nacl
rsc May 8, 2019
a4f5c9c
runtime: fix vet complaints for js/wasm
rsc May 9, 2019
b8d5150
os/user: make Current return better error w/o cgo & complete environment
bradfitz May 9, 2019
40657c2
runtime: fix s390x build
rsc May 9, 2019
4ae31dc
cmd/compile: re-use regalloc's []valState
josharian May 9, 2019
2aa8971
cmd/go: move two vcs test repos to vcs-test.golang.org
May 9, 2019
1d1ff46
cmd/go/testdata/script: remove skips and clarify comments in mod_*_up…
May 10, 2019
ef4666e
runtime: fix windows-amd64-2012 build
rsc May 10, 2019
3b8c804
cmd/go: force -coverpkg main packages to be built as libraries
May 10, 2019
5833aa5
cmd/vendor: import vet fixes from x/tools
May 10, 2019
49a1a01
cmd/go: move automatic testing.Init call into generated test code
cespare May 8, 2019
309ab1e
cmd/go: add generated code comment to _testmain.go template
May 10, 2019
f61cf6f
cmd/compile: reduce rulelog noise
josharian May 10, 2019
ce5ae2f
test: use a real use function in nilptr2.go
cherrymui May 10, 2019
0926701
net: comment duplicate constant
tamird May 11, 2019
83f205f
cmd/link: add support for R_AARCH64_LDST128_ABS_LO12_NC relocations
4a6f656c May 10, 2019
2e4edf4
cmd/internal/obj/x86: add oclass function tests
quasilyte May 5, 2019
afd7915
os: fix typo in Chmod godoc
tklauser May 13, 2019
c583104
errors: remove useless condition checking in Is
cuonglm May 10, 2019
2fd97ee
time: fix a typo in comments
nkryuchkov May 12, 2019
d41a0a0
cmd/compile: remove large intermediate slice from gc.scopePCs
dr2chase May 10, 2019
c2f7dd1
doc: use consistent path in example code
shuLhan May 5, 2019
db2bf15
mime: update .mjs MIME type from text/ to application/javascript
bradfitz May 6, 2019
5f320f9
cmd/go/internal/modfetch: fix GOSUMDB test failures
May 10, 2019
8d212c3
cmd/go/internal/modfetch/codehost: ignore incomplete semver tags in R…
May 10, 2019
7a43f8a
runtime: resolve latent function type TODO
tamird May 13, 2019
6ca324f
index/suffixarray: index 3-10X faster in half the memory
rsc Apr 26, 2019
23f3ea8
cmd/compile: correct the argument type in SETXXstore -> MOVBstore rul…
cherrymui May 12, 2019
3def99a
cmd/go: print finally FAIL if a test has failed in package list mode
luka-zitnik Apr 7, 2019
ed7a92b
cmd/objdump: mark tests as parallel
josharian May 13, 2019
71be83e
cmd/go: make 'go get' match patterns against packages, not modules
May 9, 2019
9c86eae
runtime: resolve latent TODOs
tamird May 13, 2019
3378683
cmd/fix: mark tests as parallel
josharian May 13, 2019
f68244e
cmd/objdump: ensure that test executable files are distinct
josharian May 13, 2019
5d98330
cmd/compile: mark a few more tests as parallel
josharian May 13, 2019
451cf3e
spec: clarify language on package-level variable initialization
griesemer May 8, 2019
eebb9db
spec: clarify the difference between &T{} and new(T)
griesemer May 10, 2019
45d74aa
text/template: fix truth handling of typed interface nils in if and with
bep Mar 10, 2019
5b4ea62
cmd/go: default to GO111MODULE=auto and make it trigger in GOPATH/src
May 10, 2019
9892cd6
cmd/go: do not allow version prefixes to match prereleases of that ve…
May 13, 2019
aad2336
cmd/go: convert semver tags with metadata to pseudoversions
May 13, 2019
46e03c4
cmd/go: fix import current directory error message
cuonglm Apr 27, 2019
1956b28
runtime: call atomic.Storeuintptr in noteclear on AIX
Feb 25, 2019
40b433e
net: check for canceled context before starting Windows DNS lookup
bradfitz May 14, 2019
a5cea06
net/http/httputil: remove all fields in Connection header
jonathonlacher May 14, 2019
2637f1f
database/sql: fix subject of unexported func comment
bradfitz May 14, 2019
a9e107c
cmd/compile: make sure to initialize static entries of slices
randall77 May 13, 2019
6081a9f
cmd/compile: index line number tables by source file to improve sparsity
dr2chase Dec 17, 2018
a75bfb0
cmd/internal/obj/x86: fix oclass tests for Hsolaris
quasilyte May 14, 2019
02d24fc
cmd/dist: make GOROOT unwritable on builders
bradfitz Feb 22, 2019
1e3ffb0
spec: clarify that slice a expression shares underlying array with op…
griesemer May 14, 2019
cefc0bb
cmd/go/internal/renameio: allow write file with the specified permiss…
oiooj May 9, 2019
8116599
regexp: optimize for provably too short inputs
sylvinus Apr 7, 2019
ba23fa4
cmd/vendor: go get -u golang.org/x/tools && go mod vendor
rsc May 14, 2019
38431f1
cmd/go: do not build test packages unnecessarily during go vet
rsc May 10, 2019
ab242dc
syscall: implement rawVforkSyscall for linux/ppc64x and linux/s390x
4a6f656c May 7, 2019
599ec77
crypto/x509: add support for Ed25519 certificates and keys
FiloSottile May 6, 2019
3e2c522
errors, fmt: revert rejected changes for Go 1.13
neild May 13, 2019
14491a2
fmt: support %w
neild May 13, 2019
639ac76
runtime: fix 'go vet -race runtime'
rsc May 15, 2019
4f76871
cmd/go: run full 'go vet' during 'go test' for packages in GOROOT
rsc May 9, 2019
86463c1
cmd/vet/all: delete
rsc May 10, 2019
54260c5
cmd/go: add more information to -debug-actiongraph
rsc May 10, 2019
0c47e24
cmd/go: rename renamed testing import
rsc May 14, 2019
dccd5da
cmd/go: cut 'go test -short cmd/go' time by about half
rsc May 15, 2019
018d9b4
runtime: disable some tests in -quick mode
rsc May 15, 2019
a6a0ed3
misc/cgo: disable testcarchive, testplugin during -short test (includ…
rsc May 15, 2019
80b393e
cmd/dist: say 'go test .' instead of 'go test' in a few places for cl…
rsc May 15, 2019
6ab049b
testing: panic on calls to Short/Verbose before Parse
rsc May 15, 2019
f269453
testing: shorten go test -short testing
rsc May 15, 2019
fba6066
cmd/compile: add debugging and stats output to numberlines
dr2chase May 2, 2019
12279fa
os: pass correct environment when creating Windows processes
zx2c4 May 12, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,7 @@ Maxim Khitrov <max@mxcrypt.com>
Maxime de Roucy <maxime.deroucy@gmail.com>
Máximo Cuadros Ortiz <mcuadros@gmail.com>
Maxwell Krohn <themax@gmail.com>
Maya Rashish <maya@netbsd.org>
Mayank Kumar <krmayankk@gmail.com>
MediaMath, Inc
Meir Fischer <meirfischer@gmail.com>
Expand Down
3 changes: 2 additions & 1 deletion api/except.txt
Original file line number Diff line number Diff line change
Expand Up @@ -457,4 +457,5 @@ pkg syscall (freebsd-arm-cgo), type Stat_t struct, Nlink uint16
pkg syscall (freebsd-arm-cgo), type Stat_t struct, Rdev uint32
pkg syscall (freebsd-arm-cgo), type Statfs_t struct, Mntfromname [88]int8
pkg syscall (freebsd-arm-cgo), type Statfs_t struct, Mntonname [88]int8
pkg text/scanner, const GoTokens = 1012
pkg text/scanner, const GoTokens = 1012
pkg unicode, const Version = "10.0.0"
8,039 changes: 8,039 additions & 0 deletions api/next.txt

Large diffs are not rendered by default.

93 changes: 50 additions & 43 deletions doc/asm.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,59 +57,66 @@ <h2 id="introduction">A Quick Guide to Go's Assembler</h2>
println(3)
}
$ GOOS=linux GOARCH=amd64 go tool compile -S x.go # or: go build -gcflags -S x.go

--- prog list "main" ---
0000 (x.go:3) TEXT main+0(SB),$8-0
0001 (x.go:3) FUNCDATA $0,gcargs·0+0(SB)
0002 (x.go:3) FUNCDATA $1,gclocals·0+0(SB)
0003 (x.go:4) MOVQ $3,(SP)
0004 (x.go:4) PCDATA $0,$8
0005 (x.go:4) CALL ,runtime.printint+0(SB)
0006 (x.go:4) PCDATA $0,$-1
0007 (x.go:4) PCDATA $0,$0
0008 (x.go:4) CALL ,runtime.printnl+0(SB)
0009 (x.go:4) PCDATA $0,$-1
0010 (x.go:5) RET ,
"".main STEXT size=74 args=0x0 locals=0x10
0x0000 00000 (x.go:3) TEXT "".main(SB), $16-0
0x0000 00000 (x.go:3) MOVQ (TLS), CX
0x0009 00009 (x.go:3) CMPQ SP, 16(CX)
0x000d 00013 (x.go:3) JLS 67
0x000f 00015 (x.go:3) SUBQ $16, SP
0x0013 00019 (x.go:3) MOVQ BP, 8(SP)
0x0018 00024 (x.go:3) LEAQ 8(SP), BP
0x001d 00029 (x.go:3) FUNCDATA $0, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x001d 00029 (x.go:3) FUNCDATA $1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x001d 00029 (x.go:3) FUNCDATA $2, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x001d 00029 (x.go:4) PCDATA $0, $0
0x001d 00029 (x.go:4) PCDATA $1, $0
0x001d 00029 (x.go:4) CALL runtime.printlock(SB)
0x0022 00034 (x.go:4) MOVQ $3, (SP)
0x002a 00042 (x.go:4) CALL runtime.printint(SB)
0x002f 00047 (x.go:4) CALL runtime.printnl(SB)
0x0034 00052 (x.go:4) CALL runtime.printunlock(SB)
0x0039 00057 (x.go:5) MOVQ 8(SP), BP
0x003e 00062 (x.go:5) ADDQ $16, SP
0x0042 00066 (x.go:5) RET
0x0043 00067 (x.go:5) NOP
0x0043 00067 (x.go:3) PCDATA $1, $-1
0x0043 00067 (x.go:3) PCDATA $0, $-1
0x0043 00067 (x.go:3) CALL runtime.morestack_noctxt(SB)
0x0048 00072 (x.go:3) JMP 0
...
</pre>

<p>
The <code>FUNCDATA</code> and <code>PCDATA</code> directives contain information
for use by the garbage collector; they are introduced by the compiler.
</p>

<!-- Commenting out because the feature is gone but it's popular and may come back.
</p>

<p>
To see what gets put in the binary after linking, add the <code>-a</code> flag to the linker:
To see what gets put in the binary after linking, use <code>go tool objdump</code>:
</p>

<pre>
$ go tool 6l -a x.6 # or: go build -ldflags -a x.go
codeblk [0x2000,0x1d059) at offset 0x1000
002000 main.main | (3) TEXT main.main+0(SB),$8
002000 65488b0c25a0080000 | (3) MOVQ 2208(GS),CX
002009 483b21 | (3) CMPQ SP,(CX)
00200c 7707 | (3) JHI ,2015
00200e e83da20100 | (3) CALL ,1c250+runtime.morestack00
002013 ebeb | (3) JMP ,2000
002015 4883ec08 | (3) SUBQ $8,SP
002019 | (3) FUNCDATA $0,main.gcargs·0+0(SB)
002019 | (3) FUNCDATA $1,main.gclocals·0+0(SB)
002019 48c7042403000000 | (4) MOVQ $3,(SP)
002021 | (4) PCDATA $0,$8
002021 e8aad20000 | (4) CALL ,f2d0+runtime.printint
002026 | (4) PCDATA $0,$-1
002026 | (4) PCDATA $0,$0
002026 e865d40000 | (4) CALL ,f490+runtime.printnl
00202b | (4) PCDATA $0,$-1
00202b 4883c408 | (5) ADDQ $8,SP
00202f c3 | (5) RET ,
...
$ go build -o x.exe x.go
$ go tool objdump -s main.main x.exe
TEXT main.main(SB) /tmp/x.go
x.go:3 0x10501c0 65488b0c2530000000 MOVQ GS:0x30, CX
x.go:3 0x10501c9 483b6110 CMPQ 0x10(CX), SP
x.go:3 0x10501cd 7634 JBE 0x1050203
x.go:3 0x10501cf 4883ec10 SUBQ $0x10, SP
x.go:3 0x10501d3 48896c2408 MOVQ BP, 0x8(SP)
x.go:3 0x10501d8 488d6c2408 LEAQ 0x8(SP), BP
x.go:4 0x10501dd e86e45fdff CALL runtime.printlock(SB)
x.go:4 0x10501e2 48c7042403000000 MOVQ $0x3, 0(SP)
x.go:4 0x10501ea e8e14cfdff CALL runtime.printint(SB)
x.go:4 0x10501ef e8ec47fdff CALL runtime.printnl(SB)
x.go:4 0x10501f4 e8d745fdff CALL runtime.printunlock(SB)
x.go:5 0x10501f9 488b6c2408 MOVQ 0x8(SP), BP
x.go:5 0x10501fe 4883c410 ADDQ $0x10, SP
x.go:5 0x1050202 c3 RET
x.go:3 0x1050203 e83882ffff CALL runtime.morestack_noctxt(SB)
x.go:3 0x1050208 ebb6 JMP main.main(SB)
</pre>

-->

<h3 id="constants">Constants</h3>

<p>
Expand Down Expand Up @@ -266,7 +273,7 @@ <h3 id="symbols">Symbols</h3>
</p>

<p>
In Go object files and binaries, the full name of a symbol is the
In Go object files and binaries, the full name of a symbol is the
package path followed by a period and the symbol name:
<code>fmt.Printf</code> or <code>math/rand.Int</code>.
Because the assembler's parser treats period and slash as punctuation,
Expand Down Expand Up @@ -485,7 +492,7 @@ <h3 id="runtime">Runtime Coordination</h3>
At the start of the function, the arguments are assumed
to be initialized but the results are assumed uninitialized.
If the results will hold live pointers during a call instruction,
the function should start by zeroing the results and then
the function should start by zeroing the results and then
executing the pseudo-instruction <code>GO_RESULTS_INITIALIZED</code>.
This instruction records that the results are now initialized
and should be scanned during stack movement and garbage collection.
Expand All @@ -503,7 +510,7 @@ <h3 id="runtime">Runtime Coordination</h3>
The pointer information can also be omitted if the
function contains no call instructions.
Otherwise, the local stack frame must not contain pointers,
and the assembly must confirm this fact by executing the
and the assembly must confirm this fact by executing the
pseudo-instruction <code>NO_LOCAL_POINTERS</code>.
Because stack resizing is implemented by moving the stack,
the stack pointer may change during any function call:
Expand Down
6 changes: 3 additions & 3 deletions doc/code.html
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,12 @@ <h3 id="Command">Your first program</h3>
<pre>
$ <b>cd $GOPATH/src/github.com/user/hello</b>
$ <b>git init</b>
Initialized empty Git repository in /home/user/work/src/github.com/user/hello/.git/
Initialized empty Git repository in /home/user/go/src/github.com/user/hello/.git/
$ <b>git add hello.go</b>
$ <b>git commit -m "initial commit"</b>
[master (root-commit) 0b4507d] initial commit
1 file changed, 1 insertion(+)
create mode 100644 hello.go
1 file changed, 7 insertion(+)
create mode 100644 hello.go
</pre>

<p>
Expand Down
3 changes: 2 additions & 1 deletion doc/contribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ <h3>Overview</h3>
<li>
<b>Step 2</b>: Configure authentication credentials for the Go Git repository.
Visit <a href="https://go.googlesource.com/">go.googlesource.com</a>, click
on "Generate Password" (top right), and follow the instructions.
on the gear icon (top right), then on "Obtain password", and follow the
instructions.
</li>
<li>
<b>Step 3</b>: Register for Gerrit, the code review tool used by the Go team,
Expand Down
3 changes: 3 additions & 0 deletions doc/debugging_with_gdb.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ <h3 id="Go_Extensions">Go Extensions</h3>
(gdb) <b>help goroutine</b></pre>
For example:
<pre>(gdb) <b>goroutine 12 bt</b></pre>
You can inspect all goroutines by passing <code>all</code> instead of a specific goroutine's ID.
For example:
<pre>(gdb) <b>goroutine all bt</b></pre>
</li>
</ul>

Expand Down
56 changes: 56 additions & 0 deletions doc/devel/release.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,35 @@ <h3 id="go1.12.minor">Minor revisions</h3>
1.12.1 milestone</a> on our issue tracker for details.
</p>

<p>
go1.12.2 (released 2019/04/05) includes fixes to the compiler, the go
command, the runtime, and the <code>doc</code>, <code>net</code>,
<code>net/http/httputil</code>, and <code>os</code> packages. See the
<a href="https://github.com/golang/go/issues?q=milestone%3AGo1.12.2">Go
1.12.2 milestone</a> on our issue tracker for details.
</p>

<p>
go1.12.3 (released 2019/04/08) was accidentally released without its
intended fix. It is identical to go1.12.2, except for its version
number. The intended fix is in go1.12.4.
</p>

<p>
go1.12.4 (released 2019/04/11) fixes an issue where using the prebuilt binary
releases on older versions of GNU/Linux
<a href="https://golang.org/issues/31293">led to failures</a>
when linking programs that used cgo.
Only Linux users who hit this issue need to update.
</p>

<p>
go1.12.5 (released 2019/05/06) includes fixes to the compiler, the linker,
the go command, the runtime, and the <code>os</code> package. See the
<a href="https://github.com/golang/go/issues?q=milestone%3AGo1.12.5">Go
1.12.5 milestone</a> on our issue tracker for details.
</p>

<h2 id="go1.11">go1.11 (released 2018/08/24)</h2>

<p>
Expand Down Expand Up @@ -98,6 +127,33 @@ <h3 id="go1.11.minor">Minor revisions</h3>
1.11.6 milestone</a> on our issue tracker for details.
</p>

<p>
go1.11.7 (released 2019/04/05) includes fixes to the runtime and the
<code>net</code> packages. See the
<a href="https://github.com/golang/go/issues?q=milestone%3AGo1.11.7">Go
1.11.7 milestone</a> on our issue tracker for details.
</p>

<p>
go1.11.8 (released 2019/04/08) was accidentally released without its
intended fix. It is identical to go1.11.7, except for its version
number. The intended fix is in go1.11.9.
</p>

<p>
go1.11.9 (released 2019/04/11) fixes an issue where using the prebuilt binary
releases on older versions of GNU/Linux
<a href="https://golang.org/issues/31293">led to failures</a>
when linking programs that used cgo.
Only Linux users who hit this issue need to update.
</p>

<p>
go1.11.10 (released 2019/05/06) includes fixes to the runtime and the linker.
See the <a href="https://github.com/golang/go/issues?q=milestone%3AGo1.11.10">Go
1.11.10 milestone</a> on our issue tracker for details.
</p>

<h2 id="go1.10">go1.10 (released 2018/02/16)</h2>

<p>
Expand Down
2 changes: 1 addition & 1 deletion doc/go1.12.html
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
A new <a href="/pkg/runtime/debug/#BuildInfo"><code>BuildInfo</code></a> type
exposes the build information read from the running binary, available only in
binaries built with module support. This includes the main package path, main
module information, and the module dependencies. This type is given though the
module information, and the module dependencies. This type is given through the
<a href="/pkg/runtime/debug/#ReadBuildInfo"><code>ReadBuildInfo</code></a> function
on <a href="/pkg/runtime/debug/#BuildInfo"><code>BuildInfo</code></a>.
</p>
Expand Down
97 changes: 97 additions & 0 deletions doc/go1.13.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<!--{
"Title": "Go 1.13 Release Notes",
"Path": "/doc/go1.13",
"Template": true
}-->

<!--
NOTE: In this document and others in this directory, the convention is to
set fixed-width phrases with non-fixed-width spaces, as in
<code>hello</code> <code>world</code>.
Do not send CLs removing the interior tags from such phrases.
-->

<style>
ul li { margin: 0.5em 0; }
</style>

<h2 id="introduction">DRAFT RELEASE NOTES - Introduction to Go 1.13</h2>

<p>
<strong>
Go 1.13 is not yet released. These are work-in-progress
release notes. Go 1.13 is expected to be released in August 2019.
</strong>
</p>

<p>
TODO
</p>

<h2 id="language">Changes to the language</h2>

<p>
TODO
</p>

<h2 id="ports">Ports</h2>

<p>
TODO
</p>

<h3 id="darwin">Darwin</h3>

<p>
As <a href="go1.12#darwin">announced</a> in the Go 1.12 release notes,
Go 1.13 now requires macOS 10.11 El Capitan or later;
support for previous versions has been discontinued.
</p>

<h3 id="freebsd">FreeBSD</h3>

<p>
As <a href="go1.12#freebsd">announced</a> in the Go 1.12 release notes,
Go 1.13 now requires FreeBSD 11.2 or later;
support for previous versions has been discontinued.
FreeBSD 12.0 or later requires a kernel with the COMPAT_FREEBSD11 option set (this is the default).
</p>

<h2 id="tools">Tools</h2>

<p>
TODO
</p>

<h2 id="runtime">Runtime</h2>

<p>
TODO
</p>


<h2 id="library">Core library</h2>

<p>
TODO generally
</p>

<h3 id="tls_1_3">TLS 1.3</h3>

<p>
TODO; link to <a href="/doc/go1.12#tls_1_3">Go 1.12 notes</a>.
</p>


<h3 id="minor_library_changes">Minor changes to the library</h3>

<p>
As always, there are various minor changes and updates to the library,
made with the Go 1 <a href="/doc/go1compat">promise of compatibility</a>
in mind.
</p>

<p>
TODO
</p>

4 changes: 2 additions & 2 deletions doc/go_faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -2082,8 +2082,8 @@ <h3 id="What_compiler_technology_is_used_to_build_the_compilers">
our performance goals.
More important in retrospect, starting with LLVM would have made it
harder to introduce some of the ABI and related changes, such as
stack management, that Go requires but not are not part of the
standard C setup.
stack management, that Go requires but are not part of the standard
C setup.
A new <a href="https://go.googlesource.com/gollvm/">LLVM implementation</a>
is starting to come together now, however.
</p>
Expand Down
Loading