Skip to content

Commit 47e6fd0

Browse files
felixgecherrymui
authored andcommitted
runtime: remove systemstack logic from adjustframe
Remove logic for skipping some adjustframe logic for systemstack (aka FuncID_systemstack_switch). This was introduced in 2014 by 9198ed4 but doesn't seem to be needed anymore. Updates #59692 Change-Id: I2368d64f9bb28ced4e7f15c9b15dac7a29194389 Reviewed-on: https://go-review.googlesource.com/c/go/+/489116 Reviewed-by: Michael Knyszek <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Felix Geisendörfer <[email protected]> Reviewed-by: Cherry Mui <[email protected]>
1 parent 6dca1a2 commit 47e6fd0

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/runtime/stack.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -676,13 +676,6 @@ func adjustframe(frame *stkframe, adjinfo *adjustinfo) {
676676
adjustpointer(adjinfo, unsafe.Pointer(frame.varp))
677677
}
678678

679-
if f.funcID == abi.FuncID_systemstack_switch {
680-
// A special routine at the bottom of stack of a goroutine that does a systemstack call.
681-
// We will allow it to be copied even though we don't
682-
// have full GC info for it (because it is written in asm).
683-
return
684-
}
685-
686679
locals, args, objs := frame.getStackMap(&adjinfo.cache, true)
687680

688681
// Adjust local variables if stack frame has been allocated.

0 commit comments

Comments
 (0)