]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/mmap: close file after mmap
authorMichael Matloob <matloob@golang.org>
Wed, 26 Feb 2025 21:31:41 +0000 (16:31 -0500)
committerMichael Matloob <matloob@golang.org>
Mon, 10 Mar 2025 18:11:55 +0000 (11:11 -0700)
commit2620cc1caae099c5947bfd5ff2c10bd4a3b628fd
treeee0a1f8bb13f9501b5da077bd3664c7f816ebf06
parentfd3997168d24eca57394026428e39afea20f3ae1
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>
src/cmd/go/internal/cache/cache.go
src/cmd/go/internal/mmap/mmap.go