mirror of git://gcc.gnu.org/git/gcc.git
Traceback routines, e.g. callers and funcentry, may call
__go_get_backtrace_state. If a profiling signal arrives while we
are in the critical section of __go_get_backtrace_state, it tries
to do a traceback, which also calls __go_get_backtrace_state,
which tries to enter the same critical section and will deadlock.
Prevent this deadlock by setting up runtime_in_callers before
calling __go_get_backtrace_state.
Found while investigating golang/go#29448. Will add a test in the
next CL.
Updates golang/go#29448.
Reviewed-on: https://go-review.googlesource.com/c/156037
From-SVN: r267590
|
||
|---|---|---|
| .. | ||
| gofrontend | ||
| ChangeLog | ||
| Make-lang.in | ||
| README.gcc | ||
| config-lang.in | ||
| gccgo.texi | ||
| go-backend.c | ||
| go-c.h | ||
| go-gcc-diagnostics.cc | ||
| go-gcc.cc | ||
| go-gcc.h | ||
| go-lang.c | ||
| go-linemap.cc | ||
| go-location.h | ||
| go-sha1.cc | ||
| go-system.h | ||
| gospec.c | ||
| lang-specs.h | ||
| lang.opt | ||
README.gcc
The files in the gofrontend subdirectory are mirrored from the gofrontend project hosted at http://code.google.com/p/gofrontend. These files are the ones in the go subdirectory of that project.