]> Cypherpunks repositories - gostls13.git/commit
runtime: have mergeInlineMarkBits also clear the inline mark bits
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 14 Jul 2025 19:23:12 +0000 (19:23 +0000)
committerGopher Robot <gobot@golang.org>
Tue, 15 Jul 2025 19:24:28 +0000 (12:24 -0700)
commit0c6296ab128eae1980eb81a51b982766a5d7b5fb
tree3a50f4328000e960b3f6e6fd4a9deb3f20a38bf1
parent397d2117ec5ca7a96324f02dcfc24d8f00b067a0
runtime: have mergeInlineMarkBits also clear the inline mark bits

This is conceptually simpler, as the sweeper doesn't have to worry about
clearing them separately. It also doesn't have a use for them.

This will also be useful to avoiding unnecessary zeroing in
initInlineMarkBits at allocation time. Currently, because it's used in
both span allocation and at sweep time, we cannot blindly trust
needzero.

This change also renames mergeInlineMarkBits to moveInlineMarkBits to
make this change in semantics clearer from the name.

For #73581.

Change-Id: Ib154738a945633b7ff5b2ae27235baa310400139
Reviewed-on: https://go-review.googlesource.com/c/go/+/687936
Auto-Submit: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/mgcmark_greenteagc.go
src/runtime/mgcmark_nogreenteagc.go
src/runtime/mgcsweep.go