• Russ Cox's avatar
    runtime: adjust traceback / garbage collector boundary · e58f798c
    Russ Cox authored
    The garbage collection routine addframeroots is duplicating
    logic in the traceback routine that calls it, sometimes correctly,
    sometimes incorrectly, sometimes incompletely.
    Pass necessary information to addframeroots instead of
    deriving it anew.
    
    Should make addframeroots significantly more robust.
    It's certainly smaller.
    
    Also try to standardize on uintptr for saved pc, sp values.
    
    Will make CL 10036044 trivial.
    
    R=golang-dev, dave, dvyukov
    CC=golang-dev
    https://golang.org/cl/10169045
    e58f798c
signal_386.c 3.49 KB