]> Cypherpunks repositories - gostls13.git/commit
runtime: handle fault during runtime more like unexpected fault address
authorRuss Cox <rsc@golang.org>
Thu, 3 Apr 2014 23:05:59 +0000 (19:05 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 3 Apr 2014 23:05:59 +0000 (19:05 -0400)
commit4110271501f901f53d987fe3a0a0f832b883c8b4
treeb402e10d27061cb057546a3976fbfbc1805e28d8
parentf5f5a8b6209f84961687d993b93ea0d397f5d5bf
runtime: handle fault during runtime more like unexpected fault address

Delaying the runtime.throw until here will print more information.
In particular it will print the signal and code values, which means
it will show the fault address.

The canpanic checks were added recently, in CL 75320043.
They were just not added in exactly the right place.

LGTM=iant
R=dvyukov, iant
CC=golang-codereviews
https://golang.org/cl/83980043
15 files changed:
src/pkg/runtime/os_darwin.c
src/pkg/runtime/os_dragonfly.c
src/pkg/runtime/os_freebsd.c
src/pkg/runtime/os_linux.c
src/pkg/runtime/os_nacl.c
src/pkg/runtime/os_netbsd.c
src/pkg/runtime/os_openbsd.c
src/pkg/runtime/os_plan9.c
src/pkg/runtime/os_plan9_386.c
src/pkg/runtime/os_plan9_amd64.c
src/pkg/runtime/os_solaris.c
src/pkg/runtime/os_windows.c
src/pkg/runtime/signal_386.c
src/pkg/runtime/signal_amd64x.c
src/pkg/runtime/signal_arm.c