Descriptionruntime: initialize TLS before thr_new on FreeBSD/amd64
If not, and a signal arrive just before runtime.thr_start could setup the
TLS for m and g, the signal handler will trigger a SIGSEGV, which will
in turn trigger yet another SIGSEGV, but this time, SIGSEGV is blocked,
so a core dump results.
Fixes issue 3017.
Patch Set 1 #Patch Set 2 : diff -r a194c22248eb https://code.google.com/p/go/ #Patch Set 3 : diff -r 767b6229d4dc https://code.google.com/p/go/ #
|