Skip to content

Commit 5c7ae10

Browse files
committed
runtime: merge 64bit lfstack impls
Merge all the 64bit lfstack impls into one file, adjust build tags to match. Merge all the comments on the various lfstack implementations for posterity. lfstack_amd64.go can probably be merged, but it is slightly different so that will happen in a followup. Change-Id: I5362d5e127daa81c9cb9d4fa8a0cc5c5e5c2707c Reviewed-on: https://go-review.googlesource.com/21591 Run-TryBot: Dave Cheney <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Minux Ma <[email protected]>
1 parent 8455f3a commit 5c7ae10

File tree

4 files changed

+5
-84
lines changed

4 files changed

+5
-84
lines changed

src/runtime/lfstack_linux_ppc64x.go renamed to src/runtime/lfstack_64bit.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build ppc64 ppc64le
6-
// +build linux
5+
// +build arm64 mips64 mips64le ppc64 ppc64le
76

87
package runtime
98

@@ -13,6 +12,10 @@ import "unsafe"
1312
// TASK_SIZE_USER64 in the Linux kernel). This has grown over time,
1413
// so here we allow 48 bit addresses.
1514
//
15+
// On mips64, Linux limits the user address space to 40 bits (see
16+
// TASK_SIZE64 in the Linux kernel). This has grown over time,
17+
// so here we allow 48 bit addresses.
18+
//
1619
// In addition to the 16 bits taken from the top, we can take 3 from the
1720
// bottom, because node must be pointer-aligned, giving a total of 19 bits
1821
// of count.

src/runtime/lfstack_darwin_arm64.go

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/runtime/lfstack_linux_arm64.go

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/runtime/lfstack_linux_mips64x.go

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)