gcc/libgo/runtime
Ian Lance Taylor c43137e800 runtime: add precise stack scan support
This CL adds support of precise stack scan using stack maps to
    the runtime. The stack maps are generated by the compiler (if
    supported). Each safepoint is associated with a (real or dummy)
    landing pad, and its "type info" in the exception table is a
    pointer to the stack map. When a stack is scanned, the stack map
    is found by the stack unwinding code by inspecting the exception
    table (LSDA).
    
    For precise stack scan we need to unwind the stack. There are
    three cases:
    
    - If a goroutine is scanning its own stack, it can unwind the
      stack and scan the frames.
    
    - If a goroutine is scanning another, stopped, goroutine, it
      cannot directly unwind the target stack. We handle this by
      switching (runtime.gogo) to the target g, letting it unwind
      and scan the stack, and switch back.
    
    - If we are scanning a goroutine that is blocked in a syscall,
      we send a signal to the target goroutine's thread, and let the
      signal handler unwind and scan the stack. Extra care is needed
      as this races with enter/exit syscall.
    
    Currently this is only implemented on linux.
    
    Reviewed-on: https://go-review.googlesource.com/c/140518

From-SVN: r266832
2018-12-05 23:09:51 +00:00
..
aeshash.c runtime: add arm64 version of AES hash code 2018-10-01 20:14:29 +00:00
arch.h
array.h
defs.h
env_posix.c
getncpu-aix.c
getncpu-bsd.c
getncpu-irix.c
getncpu-linux.c
getncpu-none.c
getncpu-solaris.c
go-assert.c
go-assert.h
go-caller.c libgo: update to Go 1.11 2018-09-24 21:46:21 +00:00
go-callers.c runtime: funcfileline: get missing function name from symbol table 2018-02-22 18:52:33 +00:00
go-cdiv.c
go-cgo.c
go-construct-map.c
go-ffi.c
go-fieldtrack.c runtime: fix type descriptor name in C code 2018-01-31 18:25:17 +00:00
go-libmain.c
go-main.c
go-matherr.c
go-memclr.c
go-memcmp.c
go-memequal.c
go-memmove.c
go-nanotime.c
go-nosys.c
go-now.c
go-reflect-call.c
go-runtime-error.c libgo: update to Go 1.11 2018-09-24 21:46:21 +00:00
go-setenv.c
go-signal.c
go-string.h
go-strslice.c
go-type.h
go-typedesc-equal.c
go-unsafe-pointer.c compiler: rationalize external symbol names 2018-01-24 23:50:09 +00:00
go-unsetenv.c
go-unwind.c runtime: add precise stack scan support 2018-12-05 23:09:51 +00:00
go-varargs.c
panic.c libgo: update to Go 1.11 2018-09-24 21:46:21 +00:00
print.c
proc.c runtime: add precise stack scan support 2018-12-05 23:09:51 +00:00
rtems-task-variable-add.c
runtime_c.c libgo: update to Go 1.11 2018-09-24 21:46:21 +00:00
runtime.h runtime: add precise stack scan support 2018-12-05 23:09:51 +00:00
stack.c runtime: add precise stack scan support 2018-12-05 23:09:51 +00:00
thread.c
yield.c