]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: mark findObject nosplit
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Wed, 23 Oct 2019 07:31:29 +0000 (14:31 +0700)
committerAustin Clements <austin@google.com>
Sat, 26 Oct 2019 00:05:49 +0000 (00:05 +0000)
commit66f78e9d885e9a8ed7f8d2432d9f08bb586dd7cb
tree3f6ccc835d53fae8fb760145a1b32b731f8270f7
parent813d8e886208e5e001df3b55e8bc1c65ca4249ff
runtime: mark findObject nosplit

findObject takes the pointer argument as uintptr. If the pointer is to
the local stack and calling findObject happens to require the stack to
be reallocated, then spanOf is called for the old pointer.

Marking findObject as nosplit fixes the issue.

Fixes #35068

Change-Id: I029d36f9c23f91812f18f98839edf02e0ba4082e
Reviewed-on: https://go-review.googlesource.com/c/go/+/202798
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/mbitmap.go