]> Cypherpunks repositories - gostls13.git/commit
runtime: avoid runtime·cgocall in functions called by forkAndExecInChild
authorAram Hăvărneanu <aram@mgk.ro>
Thu, 13 Mar 2014 07:26:01 +0000 (18:26 +1100)
committerDave Cheney <dave@cheney.net>
Thu, 13 Mar 2014 07:26:01 +0000 (18:26 +1100)
commit28792f5d83578d9087be5d3b2490ae8a10e189de
treeb7dd33b33cc1968e1df6605f88552a73788e47ec
parentfcc10bc0f1bed00e951f26bd32aaeea5d6d691b3
runtime: avoid runtime·cgocall in functions called by forkAndExecInChild

Calling runtime·cgocall could trigger a GC in the child while
gclock was held by the parent.

Fixes #7511

LGTM=bradfitz, dvyukov, dave
R=golang-codereviews, bradfitz, dvyukov, dave
CC=golang-codereviews, rsc
https://golang.org/cl/75210044
src/pkg/runtime/syscall_solaris.goc