mirror of https://github.com/golang/go.git
parent
f081141856
commit
e66128e63b
|
|
@ -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)
|
cgoCheckArg(f.Typ, add(p, f.Offset), true, top, msg)
|
||||||
}
|
}
|
||||||
case abi.Pointer, abi.UnsafePointer:
|
case abi.Pointer, abi.UnsafePointer:
|
||||||
|
|
||||||
if indir {
|
if indir {
|
||||||
p = *(*unsafe.Pointer)(p)
|
p = *(*unsafe.Pointer)(p)
|
||||||
if p == nil {
|
if p == nil {
|
||||||
|
|
|
||||||
|
|
@ -378,7 +378,7 @@ type workType struct {
|
||||||
// markDoneSema protects transitions from mark to mark termination.
|
// markDoneSema protects transitions from mark to mark termination.
|
||||||
markDoneSema uint32
|
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
|
// Background mark completion signaling
|
||||||
|
|
||||||
// mode is the concurrency mode of the current GC cycle.
|
// mode is the concurrency mode of the current GC cycle.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue