diff options
Diffstat (limited to 'src/runtime/proc.go')
| -rw-r--r-- | src/runtime/proc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 8b57514ac0..af111014f1 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -2812,7 +2812,7 @@ func newproc1(fn *funcval, argp *uint8, narg int32, nret int32, callerpc uintptr } memmove(unsafe.Pointer(spArg), unsafe.Pointer(argp), uintptr(narg)) - memclr(unsafe.Pointer(&newg.sched), unsafe.Sizeof(newg.sched)) + memclrNoHeapPointers(unsafe.Pointer(&newg.sched), unsafe.Sizeof(newg.sched)) newg.sched.sp = sp newg.stktopsp = sp newg.sched.pc = funcPC(goexit) + sys.PCQuantum // +PCQuantum so that previous instruction is in same function |
