1
0
mirror of https://github.com/golang/go synced 2024-11-23 21:50:08 -07:00
go/src
Austin Clements 9741f0275c runtime: initialize more fields of stack spans
Stack spans don't internally use many of the fields of the mspan,
which means things like the size class and element size get left over
from whatever last used the mspan. This can lead to confusing crashes
and debugging.

Zero these fields or initialize them to something reasonable. This
also lets us simplify some code that currently has to distinguish
between heap and stack spans.

Change-Id: I9bd114e76c147bb32de497045b932f8bf1988bbf
Reviewed-on: https://go-review.googlesource.com/38573
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
2017-04-05 19:17:41 +00:00
..
archive
bufio
builtin
bytes bytes, strings: declare variables inside loop they're used in 2017-04-03 23:30:36 +00:00
cmd cmd/go: add test for test -race -i behavior 2017-04-05 18:46:16 +00:00
compress
container
context all: fix minor misspellings 2017-04-03 23:19:07 +00:00
crypto
database/sql database/sql: support scanning into user defined string types 2017-03-31 05:02:02 +00:00
debug debug/pe: add TestBuildingWindowsGUI 2017-03-30 01:19:57 +00:00
encoding encoding/pem: yet another fuzz fake failure 2017-04-03 18:46:56 +00:00
errors
expvar
flag
fmt
go all: fix minor misspellings 2017-04-03 23:19:07 +00:00
hash all: fix minor misspellings 2017-04-03 23:19:07 +00:00
html
image
index/suffixarray
internal cmd/link: skip TestDWARF when cgo is disabled 2017-03-30 22:32:33 +00:00
io
log
math all: fix minor misspellings 2017-04-03 23:19:07 +00:00
mime mime/multipart: add Size to FileHeader 2017-04-01 10:04:56 +00:00
net all: fix minor misspellings 2017-04-03 23:19:07 +00:00
os all: fix minor misspellings 2017-04-03 23:19:07 +00:00
path path/filepath: add test to walk symlink 2017-04-05 02:31:45 +00:00
plugin
reflect reflect: add MakeMapWithSize for creating maps with size hint 2017-04-04 20:01:43 +00:00
regexp regexp: reduce allocations at makeOnePass 2017-03-29 20:35:08 +00:00
runtime runtime: initialize more fields of stack spans 2017-04-05 19:17:41 +00:00
sort
strconv strconv: optimize decimal ints formatting with smallsString 2017-03-22 16:03:28 +00:00
strings strings: speed up Fields 2017-04-04 06:26:11 +00:00
sync
syscall syscall: update comments for x/sys migration 2017-04-05 14:22:15 +00:00
testing testing/quick: use Uint64 instead of Int63 2017-04-05 14:03:03 +00:00
text text/template: fix handling of empty blocks 2017-04-04 15:46:02 +00:00
time testing/quick: generate all possible int64, uint64 values 2017-04-03 14:01:25 +00:00
unicode
unsafe
vendor/golang_org/x net/http: import updated idna package and adjust request.go 2017-03-24 13:30:17 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc