]> Cypherpunks repositories - gostls13.git/commit
runtime: fix go of nil func value
authorDmitriy Vyukov <dvyukov@google.com>
Wed, 28 May 2014 04:00:01 +0000 (00:00 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 28 May 2014 04:00:01 +0000 (00:00 -0400)
commitb5caa02067e0e0d2bde9290004b15e9a226c6075
tree777c3f1fc171bebb587382e42ee2e6fcd8e6efb2
parent8a2db409c4e08ec9a8d87bdcaea928083f6293fc
runtime: fix go of nil func value
Currently runtime derefences nil with m->locks>0,
which causes unrecoverable fatal error.
Panic instead.
Fixes #8045.

LGTM=rsc
R=golang-codereviews, rsc
CC=golang-codereviews, khr
https://golang.org/cl/97620043
src/pkg/runtime/crash_test.go
src/pkg/runtime/proc.c