Commit 8620e2b0 authored by Keith Randall's avatar Keith Randall

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

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/136260043
parent dbed4e9b
......@@ -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;
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment