aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/debug.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-11-11 17:08:33 -0500
committerRuss Cox <rsc@golang.org>2014-11-11 17:08:33 -0500
commitb2cdf30eb6c4a76504956aaaad47df969274296b (patch)
treec519fc491ccc78615ca3318574ad0168114223ed /src/runtime/debug.go
parent59e3e5354d7fbb896022eb5bf57e8ad850c42dd1 (diff)
downloadgo-b2cdf30eb6c4a76504956aaaad47df969274296b.tar.xz
[dev.cc] runtime: convert scheduler 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, daniel.morsing CC=austin, dvyukov, golang-codereviews, iant, khr https://golang.org/cl/172260043
Diffstat (limited to 'src/runtime/debug.go')
-rw-r--r--src/runtime/debug.go14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/runtime/debug.go b/src/runtime/debug.go
index 4414dd55d2..f954265aa5 100644
--- a/src/runtime/debug.go
+++ b/src/runtime/debug.go
@@ -6,18 +6,6 @@ package runtime
import "unsafe"
-// Breakpoint executes a breakpoint trap.
-func Breakpoint()
-
-// LockOSThread wires the calling goroutine to its current operating system thread.
-// Until the calling goroutine exits or calls UnlockOSThread, it will always
-// execute in that thread, and no other goroutine can.
-func LockOSThread()
-
-// UnlockOSThread unwires the calling goroutine from its fixed operating system thread.
-// If the calling goroutine has not called LockOSThread, UnlockOSThread is a no-op.
-func UnlockOSThread()
-
// GOMAXPROCS sets the maximum number of CPUs that can be executing
// simultaneously and returns the previous setting. If n < 1, it does not
// change the current setting.
@@ -66,5 +54,3 @@ func NumCgoCall() int64 {
func NumGoroutine() int {
return int(gcount())
}
-
-func gcount() int32