diff options
author | Austin Clements <austin@google.com> | 2017-06-30 12:10:01 -0400 |
---|---|---|
committer | Austin Clements <austin@google.com> | 2018-10-05 16:05:17 +0000 |
commit | 415e948eaea05930b2a16bab6af9e38b24e8414b (patch) | |
tree | 2c648f67cc1a1b1eea737d688017092e285e6a4c /src/cmd/api/goapi_test.go | |
parent | 8256bcdae0da68644db1e33c0db86f5ac4395c4b (diff) | |
download | go-git-415e948eaea05930b2a16bab6af9e38b24e8414b.tar.gz |
runtime: improve mheap.alloc doc and let compiler check system stack
The alloc_m documentation refers to concepts that don't exist (and
maybe never did?). alloc_m is also not the API entry point to span
allocation.
Hence, rewrite the documentation for alloc and alloc_m. While we're
here, document why alloc_m must run on the system stack and replace
alloc_m's hand-implemented system stack check with a go:systemstack
annotation.
Change-Id: I30e263d8e53c2774a6614e1b44df5464838cef09
Reviewed-on: https://go-review.googlesource.com/c/139459
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/api/goapi_test.go')
0 files changed, 0 insertions, 0 deletions