• Russ Cox's avatar
    cmd/internal/obj: fix pc/sp information for prologue · 0a3c991f
    Russ Cox authored
    When the prologue call to morestack was moved down to the
    bottom of the function, the pc/sp tables were not updated.
    If a traceback through a call to morestack is needed, it would
    get confused at and stop at morestack.
    
    Confirmed the fix by adding //go:systemstack (which calls
    morestackc, but same issue) where it did not belong
    and inspecting the crash.
    
    Change-Id: Id0294bb9dba51ef1a49154637228fb57f1086a94
    Reviewed-on: https://go-review.googlesource.com/12144Reviewed-by: default avatarRob Pike <r@golang.org>
    0a3c991f
obj7.go 17 KB