mirror of
https://github.com/golang/go
synced 2024-11-26 22:41:23 -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:
parent
dbed4e9b4f
commit
8620e2b04e
@ -2617,12 +2617,6 @@ runtime·mcount(void)
|
|||||||
return runtime·sched.mcount;
|
return runtime·sched.mcount;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
runtime·badreflectcall(void) // called from assembly
|
|
||||||
{
|
|
||||||
runtime·panicstring("runtime: arg size to reflect.call more than 1GB");
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct {
|
static struct {
|
||||||
uint32 lock;
|
uint32 lock;
|
||||||
int32 hz;
|
int32 hz;
|
||||||
|
@ -101,6 +101,10 @@ func badmcall2(fn func(*g)) {
|
|||||||
gothrow("runtime: mcall function returned")
|
gothrow("runtime: mcall function returned")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func badreflectcall() {
|
||||||
|
panic("runtime: arg size to reflect.call more than 1GB")
|
||||||
|
}
|
||||||
|
|
||||||
func lockedOSThread() bool {
|
func lockedOSThread() bool {
|
||||||
gp := getg()
|
gp := getg()
|
||||||
return gp.lockedm != nil && gp.m.lockedg != nil
|
return gp.lockedm != nil && gp.m.lockedg != nil
|
||||||
|
Loading…
Reference in New Issue
Block a user