|
runtime: inline calls to notok
When a very low-level system call that should never fail
does fail, we call notok, which crashes the program.
Often, we are then left with only the program counter as
information about the crash, and it is in notok.
Instead, inline calls to notok (it is just one instruction
on most systems) so that the program counter will
tell us which system call is unhappy.
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+67 lines, -115 lines) |
Patch |
 |
M |
src/pkg/runtime/asm_amd64.s
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/sys_darwin_386.s
|
View
|
1
|
6 chunks |
+9 lines, -13 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/sys_darwin_amd64.s
|
View
|
1
|
8 chunks |
+8 lines, -13 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/sys_freebsd_386.s
|
View
|
1
|
6 chunks |
+7 lines, -11 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/sys_freebsd_amd64.s
|
View
|
1
|
6 chunks |
+7 lines, -12 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/sys_linux_amd64.s
|
View
|
1
|
5 chunks |
+5 lines, -10 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/sys_linux_arm.s
|
View
|
1
|
4 chunks |
+6 lines, -8 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/sys_netbsd_386.s
|
View
|
1
|
6 chunks |
+6 lines, -10 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/sys_netbsd_amd64.s
|
View
|
1
|
5 chunks |
+6 lines, -11 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/sys_openbsd_386.s
|
View
|
1
|
6 chunks |
+6 lines, -10 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/sys_openbsd_amd64.s
|
View
|
1
|
5 chunks |
+6 lines, -11 lines |
0 comments
|
Download
|
 |
M |
src/pkg/runtime/sys_windows_amd64.s
|
View
|
1
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
Total messages: 9
|