Ian Lance Taylor 053a1f2320 runtime: use the call instruction's PC for panic-in-runtime detection
If a panic happens in the runtime we turn that into a fatal error.
    We use the caller's PC to determine if the panic call is inside
    the runtime. getcallerpc returns the PC immediately after the
    call instruction. If the call is the very last instruction of a
    function, it may not find this PC belong to a runtime function,
    giving false result. We need to back off the PC by 1 to the call
    instruction.
    
    The gc runtime doesn't do this because the gc compiler always
    emit an instruction following a panic call, presumably an UNDEF
    instruction which turns into an architecture-specific illegal
    instruction. Our compiler doesn't do this.
    
    Reviewed-on: https://go-review.googlesource.com/c/159437

From-SVN: r268358
2019-01-29 00:49:23 +00:00
..
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2016-07-22 18:15:38 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2018-09-24 21:46:21 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00
2019-01-18 19:04:36 +00:00