]> Cypherpunks repositories - gostls13.git/commit
runtime,hash/maphash: reuse hashSets to save memory pressure
authorKeith Randall <khr@golang.org>
Tue, 26 Mar 2024 16:23:16 +0000 (09:23 -0700)
committerKeith Randall <khr@google.com>
Tue, 26 Mar 2024 21:33:31 +0000 (21:33 +0000)
commitb47f2febea5c570fef4a5c27a46473f511fbdaa3
treef0e3fac684f71bc62477fe5f05cf28b1435f3b93
parentd3e5e9fdf64f7a4198a73244ab3900ca8ffbacbe
runtime,hash/maphash: reuse hashSets to save memory pressure

Might help with OOMs on 32-bit platforms

Change-Id: Idd5129c61ecdfeedd5a9a18fce85dbba27cab946
Reviewed-on: https://go-review.googlesource.com/c/go/+/574475
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/hash/maphash/smhasher_test.go
src/runtime/hash_test.go