aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2014-09-06 10:12:47 -0700
committerKeith Randall <khr@golang.org>2014-09-06 10:12:47 -0700
commit8620e2b04e0ca6296070fe36ca7f5952af3b90e9 (patch)
tree93fa67fe4f3eed2ba909747618542ba376427a96 /src/pkg/runtime
parentdbed4e9b4f60b25dd472da0dd46b398114acf2fe (diff)
downloadgo-8620e2b04e0ca6296070fe36ca7f5952af3b90e9.tar.xz
runtime: badreflectcall runs on the G stack - convert to Go.
LGTM=iant R=golang-codereviews, iant CC=golang-codereviews https://golang.org/cl/136260043
Diffstat (limited to 'src/pkg/runtime')
-rw-r--r--src/pkg/runtime/proc.c6
-rw-r--r--src/pkg/runtime/proc.go4
2 files changed, 4 insertions, 6 deletions
diff --git a/src/pkg/runtime/proc.c b/src/pkg/runtime/proc.c
index c9a56a4bbd..414196ceb0 100644
--- a/src/pkg/runtime/proc.c
+++ b/src/pkg/runtime/proc.c
@@ -2617,12 +2617,6 @@ runtime·mcount(void)
return runtime·sched.mcount;
}
-void
-runtime·badreflectcall(void) // called from assembly
-{
- runtime·panicstring("runtime: arg size to reflect.call more than 1GB");
-}
-
static struct {
uint32 lock;
int32 hz;
diff --git a/src/pkg/runtime/proc.go b/src/pkg/runtime/proc.go
index f324d5c90f..a9cac266ba 100644
--- a/src/pkg/runtime/proc.go
+++ b/src/pkg/runtime/proc.go
@@ -101,6 +101,10 @@ func badmcall2(fn func(*g)) {
gothrow("runtime: mcall function returned")
}
+func badreflectcall() {
+ panic("runtime: arg size to reflect.call more than 1GB")
+}
+
func lockedOSThread() bool {
gp := getg()
return gp.lockedm != nil && gp.m.lockedg != nil