From daaf1f222063174eb7f0938eee38f7f9f364263c Mon Sep 17 00:00:00 2001 From: qiulaidongfeng <2645477756@qq.com> Date: Tue, 2 Apr 2024 13:08:24 +0000 Subject: all: use kind* of abi For #59670 Change-Id: Id66e102f13e529dd041b68ce869026a56f0a1b9b GitHub-Last-Rev: 43aa9376f72bc02a9d86518cdc99494a6b2f8573 GitHub-Pull-Request: golang/go#65564 Reviewed-on: https://go-review.googlesource.com/c/go/+/562298 LUCI-TryBot-Result: Go LUCI Reviewed-by: Austin Clements Reviewed-by: Dmitri Shuralyov Auto-Submit: Austin Clements --- src/runtime/mbitmap_noallocheaders.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/runtime/mbitmap_noallocheaders.go') diff --git a/src/runtime/mbitmap_noallocheaders.go b/src/runtime/mbitmap_noallocheaders.go index 383993aa1e..eeaeaafaac 100644 --- a/src/runtime/mbitmap_noallocheaders.go +++ b/src/runtime/mbitmap_noallocheaders.go @@ -552,7 +552,7 @@ func heapBitsSetType(x, size, dataSize uintptr, typ *_type) { h := writeHeapBitsForAddr(x) // Handle GC program. - if typ.Kind_&kindGCProg != 0 { + if typ.Kind_&abi.KindGCProg != 0 { // Expand the gc program into the storage we're going to use for the actual object. obj := (*uint8)(unsafe.Pointer(x)) n := runGCProg(addb(typ.GCData, 4), obj) @@ -829,7 +829,7 @@ func userArenaHeapBitsSetType(typ *_type, ptr unsafe.Pointer, s *mspan) { p := typ.GCData // start of 1-bit pointer mask (or GC program) var gcProgBits uintptr - if typ.Kind_&kindGCProg != 0 { + if typ.Kind_&abi.KindGCProg != 0 { // Expand gc program, using the object itself for storage. gcProgBits = runGCProg(addb(p, 4), (*byte)(ptr)) p = (*byte)(ptr) @@ -852,7 +852,7 @@ func userArenaHeapBitsSetType(typ *_type, ptr unsafe.Pointer, s *mspan) { h = h.pad(typ.Size_ - typ.PtrBytes) h.flush(uintptr(ptr), typ.Size_) - if typ.Kind_&kindGCProg != 0 { + if typ.Kind_&abi.KindGCProg != 0 { // Zero out temporary ptrmask buffer inside object. memclrNoHeapPointers(ptr, (gcProgBits+7)/8) } -- cgit v1.3-5-g9baa