diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2014-03-13 17:41:08 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2014-03-13 17:41:08 +0400 |
| commit | e678ab4e375659fea86b17557c23673033cf897c (patch) | |
| tree | 4572fb56152de8e44ae6482a9a45cd2743220ecd /src/pkg/runtime/runtime.h | |
| parent | 156962872575382697a0487030cd5777312d6d0c (diff) | |
| download | go-e678ab4e375659fea86b17557c23673033cf897c.tar.xz | |
runtime: detect stack split after fork
This check would allowed to easily prevent issue 7511.
Update #7511
LGTM=rsc
R=rsc, aram
CC=golang-codereviews
https://golang.org/cl/75260043
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index ecff533f59..8e5e9a1294 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -367,6 +367,7 @@ struct M bool needextram; bool (*waitunlockf)(G*, void*); void* waitlock; + uintptr forkstackguard; #ifdef GOOS_windows void* thread; // thread handle // these are here because they are too large to be on the stack |
