]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/mmap: use syscall.Mmap on solaris
authorTobias Klauser <tklauser@distanz.ch>
Mon, 15 Aug 2022 08:52:48 +0000 (10:52 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 16 Aug 2022 05:09:57 +0000 (05:09 +0000)
commitb565476e2c812f65385595717fff191ac174cab7
tree32e1799b9b2e9a18592e8c9b3a152f2509bcf024
parent5e7697b6275bb28bcfd18b2f21de9905164926dd
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 <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/cmd/go/internal/mmap/mmap_plan9.go [moved from src/cmd/go/internal/mmap/mmap_other.go with 93% similarity]
src/cmd/go/internal/mmap/mmap_unix.go