aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime/extern.go
diff options
context:
space:
mode:
authorPieter Droogendijk <pieter@binky.org.uk>2013-07-29 19:43:08 +0400
committerDmitriy Vyukov <dvyukov@google.com>2013-07-29 19:43:08 +0400
commit6350e45892b5b0189fe3461ba1e7f530da23ff8f (patch)
treefe90ee9ca61e20117ea8e420d3df9fac029e7f5d /src/pkg/runtime/extern.go
parent3398322d5ebaf7b870f07aebae92fc2fd047704c (diff)
downloadgo-6350e45892b5b0189fe3461ba1e7f530da23ff8f.tar.xz
runtime: allow SetFinalizer with a func(interface{})
Fixes #5368. R=golang-dev, dvyukov CC=golang-dev, rsc https://golang.org/cl/11858043
Diffstat (limited to 'src/pkg/runtime/extern.go')
-rw-r--r--src/pkg/runtime/extern.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pkg/runtime/extern.go b/src/pkg/runtime/extern.go
index cc25de1554..3dc0671fce 100644
--- a/src/pkg/runtime/extern.go
+++ b/src/pkg/runtime/extern.go
@@ -122,8 +122,9 @@ func funcentry_go(*Func) uintptr
// The argument x must be a pointer to an object allocated by
// calling new or by taking the address of a composite literal.
// The argument f must be a function that takes a single argument
-// of x's type and can have arbitrary ignored return values.
-// If either of these is not true, SetFinalizer aborts the program.
+// of x's type or interface{}, and can have arbitrary ignored return
+// values. If either of these is not true, SetFinalizer aborts the
+// program.
//
// Finalizers are run in dependency order: if A points at B, both have
// finalizers, and they are otherwise unreachable, only the finalizer