]> Cypherpunks repositories - gostls13.git/commit
runtime: mark arenaIdx.l1 and arenaIdx.l2 methods as nosplit
authorThan McIntosh <thanm@google.com>
Mon, 10 Oct 2022 17:49:54 +0000 (13:49 -0400)
committerThan McIntosh <thanm@google.com>
Mon, 10 Oct 2022 19:56:54 +0000 (19:56 +0000)
commit506e690a26390d137b8bfc01d90121581c3d6f7a
tree4646734b1773febbdfef7a4e88ad877bf67c3369
parent4a459cbbad7b9528e5f569157b157800866a4fb8
runtime: mark arenaIdx.l1 and arenaIdx.l2 methods as nosplit

Mark the "l1" and "l2" methods on "arenaIdx" with //go:nosplit, since
these methods are called from a nosplit context (for example, from
"spanOf").

Fixes #56044.
Updates #21314.

Change-Id: I48c7aa756b59a13162c89ef21066f83371ae50f1
Reviewed-on: https://go-review.googlesource.com/c/go/+/441859
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/runtime/mheap.go