]> Cypherpunks repositories - gostls13.git/commit
Revert "liblink, cmd/ld, runtime: remove stackguard1"
authorRuss Cox <rsc@golang.org>
Mon, 5 Jan 2015 16:29:21 +0000 (16:29 +0000)
committerRuss Cox <rsc@golang.org>
Mon, 5 Jan 2015 16:29:56 +0000 (16:29 +0000)
commite6d351126475dd55d9f2094c22a11c63919ab106
tree58b2d9019e1b0db4331516e91e2d1b17b00d0d2c
parenta1c9e103719289b4f291fcb631ad324a0e331aed
Revert "liblink, cmd/ld, runtime: remove stackguard1"

This reverts commit ab0535ae3fb45ba734d47542cc4845f27f708d1b.

I think it will remain useful to distinguish code that must
run on a system stack from code that can run on either stack,
even if that distinction is no
longer based on the implementation language.

That is, I expect to add a //go:systemstack comment that,
in terms of the old implementation, tells the compiler,
to pretend this function was written in C.

Change-Id: I33d2ebb2f99ae12496484c6ec8ed07233d693275
Reviewed-on: https://go-review.googlesource.com/2275
Reviewed-by: Russ Cox <rsc@golang.org>
27 files changed:
include/link.h
src/cmd/ld/lib.c
src/cmd/ld/lib.h
src/cmd/ld/pobj.c
src/liblink/obj5.c
src/liblink/obj6.c
src/liblink/obj8.c
src/liblink/obj9.c
src/liblink/objfile.c
src/runtime/asm_386.s
src/runtime/asm_amd64.s
src/runtime/asm_amd64p32.s
src/runtime/asm_arm.s
src/runtime/asm_ppc64x.s
src/runtime/lock_futex.go
src/runtime/lock_sema.go
src/runtime/malloc.go
src/runtime/proc1.go
src/runtime/runtime1.go
src/runtime/runtime2.go
src/runtime/stack1.go
src/runtime/stack2.go
src/runtime/sys_plan9_386.s
src/runtime/sys_plan9_amd64.s
src/runtime/sys_solaris_amd64.s
src/runtime/sys_windows_386.s
src/runtime/sys_windows_amd64.s