]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: badreflectcall runs on the G stack - convert to Go.
authorKeith Randall <khr@golang.org>
Sat, 6 Sep 2014 17:12:47 +0000 (10:12 -0700)
committerKeith Randall <khr@golang.org>
Sat, 6 Sep 2014 17:12:47 +0000 (10:12 -0700)
LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/136260043

src/pkg/runtime/proc.c
src/pkg/runtime/proc.go

index c9a56a4bbde982f8510b5c9bc3e8da15790fadca..414196ceb0d07777dfb4f3119c7159dbf1502010 100644 (file)
@@ -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;
index f324d5c90f87819eed5733e518de33705f2e507d..a9cac266ba099d9d480ba691ba07a646d3aa532c 100644 (file)
@@ -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