• Austin Clements's avatar
    runtime: allow write barriers in startpanic_m · 070cc8eb
    Austin Clements authored
    We're about to start tracking nowritebarrierrec through systemstack
    calls, which will reveal write barriers in startpanic_m prohibited by
    various callers.
    
    We actually can allow write barriers here because the write barrier is
    a no-op when we're panicking. Let the compiler know.
    
    Updates #22384.
    For #22460.
    
    Change-Id: Ifb3a38d3dd9a4125c278c3680f8648f987a5b0b8
    Reviewed-on: https://go-review.googlesource.com/72770
    Run-TryBot: Austin Clements <austin@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRick Hudson <rlh@golang.org>
    070cc8eb
mbarrier.go 14.9 KB