]> Cypherpunks repositories - gostls13.git/commit
runtime: fix heap pointer invariant rules in HACKING.md
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 28 Nov 2018 18:52:35 +0000 (18:52 +0000)
committerMichael Knyszek <mknyszek@google.com>
Fri, 30 Nov 2018 21:12:20 +0000 (21:12 +0000)
commitd029058b5912312963225c40ae4bf44e3cb4be76
tree153ad5a636a8f1d5054c5b0bfb14c9c2b7ab330f
parent8476fd7b2c5c048c2dd46fe63c5aff966506ab87
runtime: fix heap pointer invariant rules in HACKING.md

This change fixes an error in HACKING.md which claims all pointers
which live in unmanaged memory but point to the heap must be marked
as GC roots explicitly by runtime.markroot. This isn't technically
necessary if the pointer is accessible through a global variable.

Change-Id: I632b25272fdb2f789c5259dd1685d517f45fd435
Reviewed-on: https://go-review.googlesource.com/c/151539
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/HACKING.md