]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: don't mark unrolled bitmap type as having a gc program
authorKeith Randall <khr@golang.org>
Thu, 11 Jan 2024 06:59:37 +0000 (22:59 -0800)
committerKeith Randall <khr@golang.org>
Thu, 11 Jan 2024 16:19:41 +0000 (16:19 +0000)
commitee4b61a32e9cbc8ef5ce484dbf1e5133459b8771
tree801a3a650dae357a0d4434f61f2207f24e5b44c7
parente9b3ff15f40d6b258217b3467c662f816b078477
runtime: don't mark unrolled bitmap type as having a gc program

It doesn't have a GC program - the whole point is that it is
the unrolled version of a GC program.

Fortunately, this isn't a bug as (*mspan).typePointersOfUnchecked
ignores the GCProg flag and just uses GCData as a bitmap unconditionally.

Change-Id: I2508af85af4a1806946e54c893120c5cc0cc3da3
Reviewed-on: https://go-review.googlesource.com/c/go/+/555355
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@google.com>
src/runtime/mbitmap_allocheaders.go