unix: switch (*CPUSet).Zero to clear builtin#262
unix: switch (*CPUSet).Zero to clear builtin#262cyphar wants to merge 1 commit intogolang:masterfrom
Conversation
clear was added to Go 1.21 and is better than the manual loop approach. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
|
This PR (HEAD: 71dc7f0) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/sys/+/698495. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/698495. |
|
Message from Aleksa Sarai: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/698495. |
|
Message from Keith Randall: Patch Set 1: Auto-Submit+1 Code-Review+2 Commit-Queue+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/698495. |
|
Message from Go LUCI: Patch Set 1: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2025-08-23T02:04:06Z","revision":"49710f620cb88ee0436265cd88bb2550ec830bf1"} Please don’t reply on this GitHub thread. Visit golang.org/cl/698495. |
|
Message from Keith Randall: Patch Set 1: Code-Review+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/698495. |
|
Message from Keith Randall: Patch Set 1: -Commit-Queue Please don’t reply on this GitHub thread. Visit golang.org/cl/698495. |
|
Message from Go LUCI: Patch Set 1: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/698495. |
|
Message from Go LUCI: Patch Set 1: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/698495. |
|
Message from Tobias Klauser: Patch Set 1: Code-Review+2 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/698495. |
clear was added to Go 1.21 and is better than the manual loop approach. Change-Id: I851203714446e21b6329e2bcf308f2571d339e36 GitHub-Last-Rev: 71dc7f0 GitHub-Pull-Request: #262 Reviewed-on: https://go-review.googlesource.com/c/sys/+/698495 Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Auto-Submit: Keith Randall <khr@golang.org>
|
This PR is being closed because golang.org/cl/698495 has been merged. |
clear was added to Go 1.21 and is better than the manual loop approach.