• Dmitriy Vyukov's avatar
    runtime: do not preempt race calls · d017f578
    Dmitriy Vyukov authored
    In the crash stack trace race cgocall() calls endcgo(),
    this means that m->racecall is wrong.
    Indeed this can happen is a goroutine is rescheduled to another M
    during race call.
    Disable preemption for race calls.
    Fixes #6155.
    
    R=golang-dev, rsc, cshapiro
    CC=golang-dev
    https://golang.org/cl/12866045
    d017f578
race.c 9.26 KB