]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: correct writebarrier typos
authorEuan Kemp <euank@euank.com>
Wed, 14 Dec 2016 05:49:57 +0000 (21:49 -0800)
committerAustin Clements <austin@google.com>
Wed, 14 Dec 2016 18:19:10 +0000 (18:19 +0000)
Change-Id: I7d67c3d64be915f0be5932d2c068606d74f93c29
Reviewed-on: https://go-review.googlesource.com/34378
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/os_windows.go

index 0db57f8c5b69965c19e6455552295df8b9ee37d4..10cab90d473a22c6e9cb480c0eeb41bb0dc32229 100644 (file)
@@ -510,7 +510,7 @@ func semacreate(mp *m) {
 // May run with m.p==nil, so write barriers are not allowed. This
 // function is called by newosproc0, so it is also required to
 // operate without stack guards.
-//go:nowritebarrierc
+//go:nowritebarrierrec
 //go:nosplit
 func newosproc(mp *m, stk unsafe.Pointer) {
        const _STACK_SIZE_PARAM_IS_A_RESERVATION = 0x00010000
@@ -527,7 +527,7 @@ func newosproc(mp *m, stk unsafe.Pointer) {
 // Used by the C library build mode. On Linux this function would allocate a
 // stack, but that's not necessary for Windows. No stack guards are present
 // and the GC has not been initialized, so write barriers will fail.
-//go:nowritebarrierc
+//go:nowritebarrierrec
 //go:nosplit
 func newosproc0(mp *m, stk unsafe.Pointer) {
        newosproc(mp, stk)