aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2019-01-05 00:40:04 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2019-01-05 00:40:04 +0000
commitf6be1179bb66624403d0f55620d67344d9d98c51 (patch)
tree29cb9bb891a22723eb9b089c40e3f32bff282e09 /gcc
parent869fbd357e1936b0c1239bc2a336de34fd45b79e (diff)
downloadgcc-f6be1179bb66624403d0f55620d67344d9d98c51.zip
gcc-f6be1179bb66624403d0f55620d67344d9d98c51.tar.gz
gcc-f6be1179bb66624403d0f55620d67344d9d98c51.tar.bz2
runtime: prevent deadlock when profiling signal arrives during traceback
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/go/gofrontend/MERGE2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index a36396c..3484583 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -1,4 +1,4 @@
-0e482bef69d73b9381dbc543e200a1fe57275e81
+2ce291eaee427799bfcde256929dab89e0ab61eb
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.