1
0
mirror of https://github.com/golang/go synced 2024-11-26 20:01:19 -07:00

runtime: badreflectcall runs on the G stack - convert to Go.

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/136260043
This commit is contained in:
Keith Randall 2014-09-06 10:12:47 -07:00
parent dbed4e9b4f
commit 8620e2b04e
2 changed files with 4 additions and 6 deletions

View 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;

View 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