Skip to content

Commit

Permalink
n
Browse files Browse the repository at this point in the history
Change-Id: Id4be9521e8bcc75776bd02b6f107065eefd8df95
  • Loading branch information
qiulaidongfeng committed Apr 2, 2024
1 parent e66128e commit 43aa937
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/cmd/compile/internal/reflectdata/reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -743,14 +743,14 @@ func dcommontype(c rttype.Cursor, t *types.Type) {
c.Field("Align_").WriteUint8(uint8(t.Alignment()))
c.Field("FieldAlign_").WriteUint8(uint8(t.Alignment()))

i = int(kinds[t.Kind()])
kind := kinds[t.Kind()]
if types.IsDirectIface(t) {
i |= abi.KindDirectIface
kind |= abi.KindDirectIface
}
if useGCProg {
i |= abi.KindGCProg
kind |= abi.KindGCProg
}
c.Field("Kind_").WriteUint8(uint8(i))
c.Field("Kind_").WriteUint8(uint8(kind))

c.Field("Equal").WritePtr(eqfunc)
c.Field("GCData").WritePtr(gcsym)
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/mgc.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ type workType struct {
// markDoneSema protects transitions from mark to mark termination.
markDoneSema uint32

bgMarkDone uint32 // cas to 1 when at a background mark completion point
bgMarkDone uint32 // cas to 1 when at a background mark completion point
// Background mark completion signaling

// mode is the concurrency mode of the current GC cycle.
Expand Down

0 comments on commit 43aa937

Please sign in to comment.