From 11309337c4056975c0fbd83a8caee7663617bef2 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 31 May 2018 21:42:53 +0000 Subject: libgo: update to Go 1.10.2 release Reviewed-on: https://go-review.googlesource.com/115196 From-SVN: r261041 --- libgo/go/runtime/proc.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libgo/go/runtime/proc.go') diff --git a/libgo/go/runtime/proc.go b/libgo/go/runtime/proc.go index 20fa0ad..a6746c9 100644 --- a/libgo/go/runtime/proc.go +++ b/libgo/go/runtime/proc.go @@ -423,6 +423,12 @@ func releaseSudog(s *sudog) { // funcPC returns the entry PC of the function f. // It assumes that f is a func value. Otherwise the behavior is undefined. +// CAREFUL: In programs with plugins, funcPC can return different values +// for the same function (because there are actually multiple copies of +// the same function in the address space). To be safe, don't use the +// results of this function in any == expression. It is only safe to +// use the result as an address at which to start executing code. +// // For gccgo note that this differs from the gc implementation; the gc // implementation adds sys.PtrSize to the address of the interface // value, but GCC's alias analysis decides that that can not be a -- cgit v1.1