aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/lfstack_32bit.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2023-04-14 14:36:12 -0700
committerGopher Robot <gobot@golang.org>2023-04-18 20:22:50 +0000
commitd959dd97b12f4067c8511fb11493e3bf47eb9737 (patch)
tree519aee3698fa3e8a47ab7f3ef76bce6d51bcad30 /src/runtime/lfstack_32bit.go
parentfd786a550a0ca004725cba2f49fd8ee86ef22b10 (diff)
downloadgo-d959dd97b12f4067c8511fb11493e3bf47eb9737.tar.xz
runtime: change lfstack support to taggedPointer
This is a refactoring with no change in behavior, in preparation for future netpoll work. For #59545 Change-Id: I493c5fd0f49f31b75787f7b5b89c544bed73f64f Reviewed-on: https://go-review.googlesource.com/c/go/+/484836 TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> Auto-Submit: Ian Lance Taylor <iant@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Orlando Labao <orlando.labao43@gmail.com>
Diffstat (limited to 'src/runtime/lfstack_32bit.go')
-rw-r--r--src/runtime/lfstack_32bit.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/runtime/lfstack_32bit.go b/src/runtime/lfstack_32bit.go
deleted file mode 100644
index 405923cc34..0000000000
--- a/src/runtime/lfstack_32bit.go
+++ /dev/null
@@ -1,19 +0,0 @@
-// Copyright 2014 The Go Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style
-// license that can be found in the LICENSE file.
-
-//go:build 386 || arm || mips || mipsle
-
-package runtime
-
-import "unsafe"
-
-// On 32-bit systems, the stored uint64 has a 32-bit pointer and 32-bit count.
-
-func lfstackPack(node *lfnode, cnt uintptr) uint64 {
- return uint64(uintptr(unsafe.Pointer(node)))<<32 | uint64(cnt)
-}
-
-func lfstackUnpack(val uint64) *lfnode {
- return (*lfnode)(unsafe.Pointer(uintptr(val >> 32)))
-}