We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a459cb commit 506e690Copy full SHA for 506e690
src/runtime/mheap.go
@@ -576,6 +576,12 @@ func arenaBase(i arenaIdx) uintptr {
576
577
type arenaIdx uint
578
579
+// l1 returns the "l1" portion of an arenaIdx.
580
+//
581
+// Marked nosplit because it's called by spanOf and other nosplit
582
+// functions.
583
584
+//go:nosplit
585
func (i arenaIdx) l1() uint {
586
if arenaL1Bits == 0 {
587
// Let the compiler optimize this away if there's no
@@ -586,6 +592,12 @@ func (i arenaIdx) l1() uint {
592
}
593
588
594
595
+// l2 returns the "l2" portion of an arenaIdx.
596
597
+// Marked nosplit because it's called by spanOf and other nosplit funcs.
598
599
600
589
601
func (i arenaIdx) l2() uint {
590
602
591
603
return uint(i)
0 commit comments