diff options
| author | Carlos Amedee <carlos@golang.org> | 2024-01-19 14:26:02 -0500 |
|---|---|---|
| committer | Carlos Amedee <carlos@golang.org> | 2024-01-19 14:26:02 -0500 |
| commit | 9a70e17e0f0ab3da349cdc8fd8a1400c77530b26 (patch) | |
| tree | 1a9f5e3eddf4a0bca085ee0b34cf253b24da75a6 /src/runtime/mbitmap_allocheaders.go | |
| parent | 66f8e1e817777976c764ee857898a5acb44a8c31 (diff) | |
| parent | 66d34c7d08d7c536c3165dc49ed318e73ea5acc2 (diff) | |
| download | go-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.go | 4 |
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) } |
