diff options
| author | qiulaidongfeng <2645477756@qq.com> | 2024-04-02 13:08:24 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-04-02 15:10:48 +0000 |
| commit | daaf1f222063174eb7f0938eee38f7f9f364263c (patch) | |
| tree | 4187c39caf622b61276555ab72ad00f1145ad280 /src/runtime/mbitmap_noallocheaders.go | |
| parent | e3ec1ca17e339e21ca50fbdb375b4294783bc385 (diff) | |
| download | go-daaf1f222063174eb7f0938eee38f7f9f364263c.tar.xz | |
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 <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Austin Clements <austin@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/mbitmap_noallocheaders.go')
| -rw-r--r-- | src/runtime/mbitmap_noallocheaders.go | 6 |
1 files changed, 3 insertions, 3 deletions
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) } |
