]> Cypherpunks repositories - gostls13.git/commit
runtime: improve mheap.alloc doc and let compiler check system stack
authorAustin Clements <austin@google.com>
Fri, 30 Jun 2017 16:10:01 +0000 (12:10 -0400)
committerAustin Clements <austin@google.com>
Fri, 5 Oct 2018 16:05:17 +0000 (16:05 +0000)
commit415e948eaea05930b2a16bab6af9e38b24e8414b
tree2c648f67cc1a1b1eea737d688017092e285e6a4c
parent8256bcdae0da68644db1e33c0db86f5ac4395c4b
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>
src/runtime/mheap.go