diff --git a/src/runtime/cgocall.go b/src/runtime/cgocall.go index 32f31dd214..a913c0a3a1 100644 --- a/src/runtime/cgocall.go +++ b/src/runtime/cgocall.go @@ -642,7 +642,6 @@ func cgoCheckArg(t *_type, p unsafe.Pointer, indir, top bool, msg string) { cgoCheckArg(f.Typ, add(p, f.Offset), true, top, msg) } case abi.Pointer, abi.UnsafePointer: - if indir { p = *(*unsafe.Pointer)(p) if p == nil { diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go index da86fd517f..c9d3ea3d4b 100644 --- a/src/runtime/mgc.go +++ b/src/runtime/mgc.go @@ -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.