|
runtime: turn divide by zero, nil dereference into panics
tested on linux/amd64, linux/386, linux/arm, darwin/amd64, darwin/386.
freebsd untested; will finish in a separate CL.
for now all the panics are errorStrings.
richer structures can be added as necessary
once the mechanism is shaked out.
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+837 lines, -70 lines) |
Patch |
 |
M |
src/pkg/runtime/darwin/386/defs.h
|
View
|
|
2 chunks |
+45 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/darwin/386/signal.c
|
View
|
1
2
|
2 chunks |
+33 lines, -5 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/darwin/amd64/defs.h
|
View
|
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/darwin/amd64/signal.c
|
View
|
1
2
|
2 chunks |
+34 lines, -5 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/darwin/defs.c
|
View
|
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/darwin/os.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/darwin/signals.h
|
View
|
|
3 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/darwin/thread.c
|
View
|
1
2
|
2 chunks |
+25 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/freebsd/386/signal.c
|
View
|
|
2 chunks |
+23 lines, -8 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/freebsd/amd64/signal.c
|
View
|
|
2 chunks |
+23 lines, -8 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/freebsd/defs.c
|
View
|
|
1 chunk |
+48 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/freebsd/signals.h
|
View
|
|
3 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/freebsd/thread.c
|
View
|
1
2
|
2 chunks |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/linux/386/defs.h
|
View
|
|
2 chunks |
+44 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/linux/386/signal.c
|
View
|
1
2
|
2 chunks |
+25 lines, -8 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/linux/amd64/defs.h
|
View
|
|
2 chunks |
+49 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/linux/amd64/signal.c
|
View
|
1
2
|
2 chunks |
+27 lines, -10 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/linux/arm/defs.h
|
View
|
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/linux/arm/signal.c
|
View
|
1
|
2 chunks |
+24 lines, -8 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/linux/defs.c
|
View
|
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/linux/defs1.c
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/linux/defs2.c
|
View
|
|
2 chunks |
+53 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/linux/defs_arm.c
|
View
|
|
1 chunk |
+48 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/linux/os.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/linux/signals.h
|
View
|
|
3 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/linux/thread.c
|
View
|
1
2
|
2 chunks |
+26 lines, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/runtime.h
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
A |
test/recover3.go
|
View
|
1
2
|
1 chunk |
+78 lines, -0 lines |
0 comments
|
Download
|
Total messages: 4
|