mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/gc, reflect, runtime: switch to indirect func value representation
Step 1 of http://golang.org/s/go11func. R=golang-dev, r, daniel.morsing, remyoudompheng CC=golang-dev https://golang.org/cl/7393045
This commit is contained in:
parent
4335e69af6
commit
1903ad7189
38 changed files with 316 additions and 89 deletions
|
|
@ -273,7 +273,10 @@ runtime·newstack(void)
|
|||
label.sp = (uintptr)sp;
|
||||
label.pc = (byte*)runtime·lessstack;
|
||||
label.g = m->curg;
|
||||
runtime·gogocall(&label, m->morepc);
|
||||
if(reflectcall)
|
||||
runtime·gogocallfn(&label, (FuncVal*)m->morepc);
|
||||
else
|
||||
runtime·gogocall(&label, m->morepc);
|
||||
|
||||
*(int32*)345 = 123; // never return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue