From 6350e45892b5b0189fe3461ba1e7f530da23ff8f Mon Sep 17 00:00:00 2001 From: Pieter Droogendijk Date: Mon, 29 Jul 2013 19:43:08 +0400 Subject: runtime: allow SetFinalizer with a func(interface{}) Fixes #5368. R=golang-dev, dvyukov CC=golang-dev, rsc https://golang.org/cl/11858043 --- src/pkg/runtime/extern.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/pkg/runtime/extern.go') 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 -- cgit v1.3