summaryrefslogtreecommitdiff
path: root/src/runtime/sys_x86.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/sys_x86.c')
-rw-r--r--src/runtime/sys_x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/sys_x86.c b/src/runtime/sys_x86.c
index a450b3e58..edbe47ff4 100644
--- a/src/runtime/sys_x86.c
+++ b/src/runtime/sys_x86.c
@@ -20,6 +20,7 @@ runtime·gostartcall(Gobuf *gobuf, void (*fn)(void), void *ctxt)
gobuf->sp = (uintptr)sp;
gobuf->pc = (uintptr)fn;
gobuf->ctxt = ctxt;
+ runtime·writebarrierptr_nostore(&gobuf->ctxt, ctxt);
}
// Called to rewind context saved during morestack back to beginning of function.