]> Cypherpunks repositories - gostls13.git/commit
runtime/debug: add SetPanicOnFault
authorRuss Cox <rsc@golang.org>
Thu, 20 Feb 2014 21:18:05 +0000 (16:18 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 20 Feb 2014 21:18:05 +0000 (16:18 -0500)
commite56c6e75353d32a97a301d4890b58a4e10963d82
tree9b966f33cda2ca69d863d11ec638006ccbb40a52
parent67c83db60db744c17316a4dc1d590c9649d66e6c
runtime/debug: add SetPanicOnFault

SetPanicOnFault allows recovery from unexpected memory faults.
This can be useful if you are using a memory-mapped file
or probing the address space of the current program.

LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/66590044
14 files changed:
doc/go1.3.txt
src/pkg/runtime/debug/garbage.go
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_netbsd.c
src/pkg/runtime/os_openbsd.c
src/pkg/runtime/os_solaris.c
src/pkg/runtime/os_windows.c
src/pkg/runtime/proc.c
src/pkg/runtime/rdebug.goc
src/pkg/runtime/runtime.h
src/pkg/runtime/runtime_test.go