From b565476e2c812f65385595717fff191ac174cab7 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 15 Aug 2022 10:52:48 +0200 Subject: [PATCH] cmd/go/internal/mmap: use syscall.Mmap on solaris Now that syscall.Mmap is defined on solaris (see CL 413374), use it in mmapFile like on other Unix ports. For #52875 Change-Id: Ic5c5a84da8613f0c6dc947a52b7fcca50af43d79 Reviewed-on: https://go-review.googlesource.com/c/go/+/413375 Run-TryBot: Tobias Klauser Reviewed-by: Ian Lance Taylor Reviewed-by: Bryan Mills --- src/cmd/go/internal/mmap/{mmap_other.go => mmap_plan9.go} | 2 -- src/cmd/go/internal/mmap/mmap_unix.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) rename src/cmd/go/internal/mmap/{mmap_other.go => mmap_plan9.go} (93%) diff --git a/src/cmd/go/internal/mmap/mmap_other.go b/src/cmd/go/internal/mmap/mmap_plan9.go similarity index 93% rename from src/cmd/go/internal/mmap/mmap_other.go rename to src/cmd/go/internal/mmap/mmap_plan9.go index 269fe8d60a..faa5d5fc66 100644 --- a/src/cmd/go/internal/mmap/mmap_other.go +++ b/src/cmd/go/internal/mmap/mmap_plan9.go @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build plan9 || solaris - package mmap import ( diff --git a/src/cmd/go/internal/mmap/mmap_unix.go b/src/cmd/go/internal/mmap/mmap_unix.go index 33e839c217..53bcbb92a8 100644 --- a/src/cmd/go/internal/mmap/mmap_unix.go +++ b/src/cmd/go/internal/mmap/mmap_unix.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build unix && !solaris +//go:build unix package mmap -- 2.50.0