]> Cypherpunks repositories - gostls13.git/commit
runtime: fix stack split at bad time when disable inlining
authorWei Xiao <Wei.Xiao@arm.com>
Thu, 25 May 2017 05:59:39 +0000 (13:59 +0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 29 May 2017 19:10:39 +0000 (19:10 +0000)
commit91a80cc174dc2b0df4cab12966c498ac435dbc31
tree94b1b04d46a66bbcc67e7244ecdefcb584751d07
parent9acd814c2a53a10de39a891bf7b6f4d12fc7b329
runtime: fix stack split at bad time when disable inlining

key32 is called between entersyscallblock and exitsyscall
stack split may occur if disable inlining and the G is preempted

Fix the problem by describing key32 as nosplit function

Fixes #20510

Change-Id: I1f0787995936f34ef0052cf79fde036f1b338865
Reviewed-on: https://go-review.googlesource.com/44390
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/lock_futex.go