diff options
| author | Russ Cox <rsc@golang.org> | 2014-11-11 17:04:34 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-11-11 17:04:34 -0500 |
| commit | d98553a72782efb2d96c6d6f5e12869826a56779 (patch) | |
| tree | 0d53b96bf75bbe1bfd4110b7491adcc6d54ef1c6 /src/runtime/stack.go | |
| parent | 0d49f7b5fcbf5d5efad05dd4416574127bdd9dfd (diff) | |
| download | go-d98553a72782efb2d96c6d6f5e12869826a56779.tar.xz | |
[dev.cc] runtime: convert panic and stack code from C to Go
The conversion was done with an automated tool and then
modified only as necessary to make it compile and run.
[This CL is part of the removal of C code from package runtime.
See golang.org/s/dev.cc for an overview.]
LGTM=r
R=r, dave
CC=austin, dvyukov, golang-codereviews, iant, khr
https://golang.org/cl/166520043
Diffstat (limited to 'src/runtime/stack.go')
| -rw-r--r-- | src/runtime/stack.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/runtime/stack.go b/src/runtime/stack.go deleted file mode 100644 index f1b7d32d20..0000000000 --- a/src/runtime/stack.go +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright 2011 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package runtime - -const ( - // Goroutine preemption request. - // Stored into g->stackguard0 to cause split stack check failure. - // Must be greater than any real sp. - // 0xfffffade in hex. - stackPreempt = ^uintptr(1313) -) |
