commit | 2620cc1caae099c5947bfd5ff2c10bd4a3b628fd | [log] [tgz] |
---|---|---|
author | Michael Matloob <matloob@golang.org> | Wed Feb 26 16:31:41 2025 -0500 |
committer | Michael Matloob <matloob@golang.org> | Mon Mar 10 11:11:55 2025 -0700 |
tree | ee0a1f8bb13f9501b5da077bd3664c7f816ebf06 | |
parent | fd3997168d24eca57394026428e39afea20f3ae1 [diff] |
cmd/go/internal/mmap: close file after mmap Closing the file after mmap will reduce the number of files associated with the process. This will not likely help with #71698 but it doesn't hurt to close the files and should simplify lsof output. For #71698 Change-Id: I06a1bf91914afc7703783fe1a38d8bc5a6fb3d9d Reviewed-on: https://go-review.googlesource.com/c/go/+/653055 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Alan Donovan <adonovan@google.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 4.0 Attribution license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.