aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mbitmap_allocheaders.go
diff options
context:
space:
mode:
authorCarlos Amedee <carlos@golang.org>2024-01-19 14:26:02 -0500
committerCarlos Amedee <carlos@golang.org>2024-01-19 14:26:02 -0500
commit9a70e17e0f0ab3da349cdc8fd8a1400c77530b26 (patch)
tree1a9f5e3eddf4a0bca085ee0b34cf253b24da75a6 /src/runtime/mbitmap_allocheaders.go
parent66f8e1e817777976c764ee857898a5acb44a8c31 (diff)
parent66d34c7d08d7c536c3165dc49ed318e73ea5acc2 (diff)
downloadgo-9a70e17e0f0ab3da349cdc8fd8a1400c77530b26.tar.xz
[release-branch.go1.22] all: merge master into release-branch.go1.22
Change-Id: Icc6bf5dba9eae08fa3e4b63414f409727efb5197
Diffstat (limited to 'src/runtime/mbitmap_allocheaders.go')
-rw-r--r--src/runtime/mbitmap_allocheaders.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/mbitmap_allocheaders.go b/src/runtime/mbitmap_allocheaders.go
index 2151c12b85..1ec055352e 100644
--- a/src/runtime/mbitmap_allocheaders.go
+++ b/src/runtime/mbitmap_allocheaders.go
@@ -883,12 +883,12 @@ func heapSetType(x, dataSize uintptr, typ *_type, header **_type, span *mspan) (
// We only need to write size, PtrBytes, and GCData, since that's all
// the GC cares about.
gctyp = (*_type)(unsafe.Pointer(progSpan.base()))
- gctyp.Kind_ |= kindGCProg
gctyp.Size_ = typ.Size_
gctyp.PtrBytes = typ.PtrBytes
gctyp.GCData = (*byte)(add(unsafe.Pointer(progSpan.base()), heapBitsOff))
+ gctyp.TFlag = abi.TFlagUnrolledBitmap
- // Expand the GC program into space reserved at the end of the object.
+ // Expand the GC program into space reserved at the end of the new span.
runGCProg(addb(typ.GCData, 4), gctyp.GCData)
}