From ab0535ae3fb45ba734d47542cc4845f27f708d1b Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Mon, 29 Dec 2014 01:08:40 -0500 Subject: liblink, cmd/ld, runtime: remove stackguard1 Now that we've removed all the C code in runtime and the C compilers, there is no need to have a separate stackguard field to check for C code on Go stack. Remove field g.stackguard1 and rename g.stackguard0 to g.stackguard. Adjust liblink and cmd/ld as necessary. Change-Id: I54e75db5a93d783e86af5ff1a6cd497d669d8d33 Reviewed-on: https://go-review.googlesource.com/2144 Reviewed-by: Keith Randall --- src/runtime/stack2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/runtime/stack2.go') diff --git a/src/runtime/stack2.go b/src/runtime/stack2.go index 8a78b1ad96..8cc74968ee 100644 --- a/src/runtime/stack2.go +++ b/src/runtime/stack2.go @@ -97,7 +97,7 @@ const ( ) // Goroutine preemption request. -// Stored into g->stackguard0 to cause split stack check failure. +// Stored into g->stackguard to cause split stack check failure. // Must be greater than any real sp. // 0xfffffade in hex. const ( -- cgit v1.3