diff options
| author | Russ Cox <rsc@golang.org> | 2014-10-06 14:18:09 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-10-06 14:18:09 -0400 |
| commit | 9a5b055b95c6719083f32c1f8089725a0a890425 (patch) | |
| tree | f672cc387c79f77706bd22e4e6d7e0c4cd9edf52 /src/encoding/json/encode.go | |
| parent | 609d996fac7f68b34032572b7bde627f658b95f2 (diff) | |
| download | go-9a5b055b95c6719083f32c1f8089725a0a890425.tar.xz | |
runtime: update docs, code for SetFinalizer
At last minute before 1.3 we relaxed SetFinalizer to avoid
crashes when you pass the result of a global alloc to it.
This avoids the crash but makes SetFinalizer a bit too relaxed.
Document that the finalizer of a global allocation may not run.
Tighten the SetFinalizer check to ignore a global allocation but
not ignore everything else.
Fixes #7656.
LGTM=r, iant
R=golang-codereviews, iant, r
CC=dvyukov, golang-codereviews, khr, rlh
https://golang.org/cl/145930043
Diffstat (limited to 'src/encoding/json/encode.go')
0 files changed, 0 insertions, 0 deletions
