]> Cypherpunks.ru repositories - gostls13.git/commitdiff
runtime: remove debugging print in cgoCheckTypedBlock
authorIan Lance Taylor <iant@golang.org>
Sat, 13 Feb 2016 16:48:55 +0000 (08:48 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 13 Feb 2016 17:33:22 +0000 (17:33 +0000)
Change-Id: I83639fcde88e7d9747b54728a9481ee2e1b23a64
Reviewed-on: https://go-review.googlesource.com/19486
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/cgocheck.go

index 0077e22332633fd3fa30da5e9e0f04f24af3dba5..aebce1506d17e389e34ebcad0551327cfb331a61 100644 (file)
@@ -135,9 +135,6 @@ func cgoCheckTypedBlock(typ *_type, src unsafe.Pointer, off, size uintptr) {
        hbits := heapBitsForAddr(uintptr(src))
        for i := uintptr(0); i < off+size; i += sys.PtrSize {
                bits := hbits.bits()
-               if bits != 0 {
-                       println(i, bits)
-               }
                if i >= off && bits&bitPointer != 0 {
                        v := *(*unsafe.Pointer)(add(src, i))
                        if cgoIsGoPointer(v) {