1
0
mirror of https://github.com/golang/go synced 2024-11-17 16:14:42 -07:00

all: remove commented-out print statements

Those print statements are not a good debug helpers
and only clutter the code.

Change-Id: Ifbf450a04e6fa538af68e6352c016728edb4119a
Reviewed-on: https://go-review.googlesource.com/c/go/+/160537
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
Iskander Sharipov 2019-01-31 13:00:51 +03:00
parent 170b8b4b12
commit 12e63226b9
6 changed files with 0 additions and 10 deletions

View File

@ -1121,7 +1121,6 @@ func (t *tester) runPending(nextTest *distTest) {
var last *distTest
for ended < len(worklist) {
for started < len(worklist) && started-ended < maxbg {
//println("start", started)
w := worklist[started]
started++
w.start <- !t.failed || t.keepGoing
@ -1142,7 +1141,6 @@ func (t *tester) runPending(nextTest *distTest) {
if vflag > 1 {
errprintf("%s\n", strings.Join(w.cmd.Args, " "))
}
//println("wait", ended)
ended++
<-w.end
os.Stdout.Write(w.out)

View File

@ -722,8 +722,6 @@ func (c *ctxt0) oplook(p *obj.Prog) *Optab {
a2 = C_REG
}
//print("oplook %P %d %d %d\n", p, a1, a2, a3);
ops := oprange[p.As&obj.AMask]
c1 := &xcmp[a1]
c3 := &xcmp[a3]

View File

@ -5114,7 +5114,6 @@ bad:
}
ctxt.Diag("invalid instruction: %v", p)
// ctxt.Diag("doasm: notfound ft=%d tt=%d %v %d %d", p.Ft, p.Tt, p, oclass(ctxt, p, &p.From), oclass(ctxt, p, &p.To))
}
// byteswapreg returns a byte-addressable register (AX, BX, CX, DX)

View File

@ -1667,15 +1667,12 @@ Run:
if n == 0 {
// Program is over; continue in trailer if present.
if trailer != nil {
//println("trailer")
p = trailer
trailer = nil
continue
}
//println("done")
break Run
}
//println("lit", n, dst)
nbyte := n / 8
for i := uintptr(0); i < nbyte; i++ {
bits |= uintptr(*p) << nbits

View File

@ -22,7 +22,6 @@ func sysAlloc(n uintptr, sysStat *uint64) unsafe.Pointer {
print("runtime: mmap: too much locked memory (check 'ulimit -l').\n")
exit(2)
}
//println("sysAlloc failed: ", err)
return nil
}
mSysStatInc(sysStat, n)

View File

@ -1211,7 +1211,6 @@ HaveSpan:
*stat += uint64(npage << _PageShift)
memstats.heap_idle -= uint64(npage << _PageShift)
//println("spanalloc", hex(s.start<<_PageShift))
if s.inList() {
throw("still in list")
}