1
0
mirror of https://github.com/golang/go synced 2024-11-06 00:36:14 -07:00
go/src
Austin Clements dc0f0ab70f runtime: don't count manually-managed spans from heap_{inuse,sys}
Currently, manually-managed spans are included in memstats.heap_inuse
and memstats.heap_sys, but when we export these stats to the user, we
subtract out how much has been allocated for stack spans from both.
This works for now because stacks are the only manually-managed spans
we have.

However, we're about to use manually-managed spans for more things
that don't necessarily have obvious stats we can use to adjust the
user-presented numbers. Prepare for this by changing the accounting so
manually-managed spans don't count toward heap_inuse or heap_sys. This
makes these fields align with the fields presented to the user and
means we don't have to track more statistics just so we can adjust
these statistics.

For #19325.

Change-Id: I5cb35527fd65587ff23339276ba2c3969e2ad98f
Reviewed-on: https://go-review.googlesource.com/38577
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Rick Hudson <rlh@golang.org>
2017-04-13 18:20:38 +00:00
..
archive
bufio
builtin
bytes strings: optimize Count for amd64 2017-04-07 14:25:13 +00:00
cmd cmd/compile: emit string symbols during walk 2017-04-13 16:37:04 +00:00
compress
container
context all: fix minor misspellings 2017-04-03 23:19:07 +00:00
crypto crypto/aes: fix wrong instruction on ppc64le implementation 2017-04-11 20:10:08 +00:00
database/sql database/sql: correctly guard the query Row preventing early release 2017-04-12 17:36:26 +00:00
debug
encoding encoding/asn1: support 31 bit identifiers with OID 2017-04-13 00:49:49 +00:00
errors
expvar
flag
fmt
go net/http/fcgi: expose cgi env vars in request context 2017-04-13 04:38:23 +00:00
hash hash/crc32: optimize arm64 crc32 implementation 2017-04-13 12:44:10 +00:00
html html/template: panic if predefined escapers are found in pipelines during rewriting 2017-04-10 15:08:47 +00:00
image
index/suffixarray
internal internal/poll: rename RecvFrom to ReadFrom for consistency 2017-04-13 03:26:58 +00:00
io
log
math math/bits: support negative rotation count and remove RotateRight 2017-04-11 23:57:24 +00:00
mime mime: fix panic parsing 'encoded-word' 2017-04-09 19:03:00 +00:00
net net/http/fcgi: expose cgi env vars in request context 2017-04-13 04:38:23 +00:00
os os: handle relative symlinks starting with slash in Stat on windows 2017-04-12 23:33:11 +00:00
path path/filepath: add test to walk symlink 2017-04-05 02:31:45 +00:00
plugin plugin: resolve random crash when calling exported functions 2017-04-12 12:34:25 +00:00
reflect reflect: add MakeMapWithSize for creating maps with size hint 2017-04-04 20:01:43 +00:00
regexp regexp: document that Longest method is not concurrent-safe 2017-04-07 21:12:11 +00:00
runtime runtime: don't count manually-managed spans from heap_{inuse,sys} 2017-04-13 18:20:38 +00:00
sort
strconv
strings strings: optimize Count for amd64 2017-04-07 14:25:13 +00:00
sync
syscall syscall: mark WSAECONNABORTED, WSAECONNRESET as temporary network errors 2017-04-07 04:46:42 +00:00
testing testing: document example with unordered output 2017-04-10 19:55:45 +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
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