• Russ Cox's avatar
    runtime: inline calls to notok · 36aa7d4d
    Russ Cox authored
    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.
    
    R=golang-dev, gri, minux.ma, bradfitz
    CC=golang-dev
    https://golang.org/cl/5792048
    36aa7d4d
sys_freebsd_386.s 5.61 KB