1
0
mirror of https://github.com/golang/go synced 2024-11-17 21:04:43 -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 var last *distTest
for ended < len(worklist) { for ended < len(worklist) {
for started < len(worklist) && started-ended < maxbg { for started < len(worklist) && started-ended < maxbg {
//println("start", started)
w := worklist[started] w := worklist[started]
started++ started++
w.start <- !t.failed || t.keepGoing w.start <- !t.failed || t.keepGoing
@ -1142,7 +1141,6 @@ func (t *tester) runPending(nextTest *distTest) {
if vflag > 1 { if vflag > 1 {
errprintf("%s\n", strings.Join(w.cmd.Args, " ")) errprintf("%s\n", strings.Join(w.cmd.Args, " "))
} }
//println("wait", ended)
ended++ ended++
<-w.end <-w.end
os.Stdout.Write(w.out) os.Stdout.Write(w.out)

View File

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

View File

@ -5114,7 +5114,6 @@ bad:
} }
ctxt.Diag("invalid instruction: %v", p) 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) // byteswapreg returns a byte-addressable register (AX, BX, CX, DX)

View File

@ -1667,15 +1667,12 @@ Run:
if n == 0 { if n == 0 {
// Program is over; continue in trailer if present. // Program is over; continue in trailer if present.
if trailer != nil { if trailer != nil {
//println("trailer")
p = trailer p = trailer
trailer = nil trailer = nil
continue continue
} }
//println("done")
break Run break Run
} }
//println("lit", n, dst)
nbyte := n / 8 nbyte := n / 8
for i := uintptr(0); i < nbyte; i++ { for i := uintptr(0); i < nbyte; i++ {
bits |= uintptr(*p) << nbits 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") print("runtime: mmap: too much locked memory (check 'ulimit -l').\n")
exit(2) exit(2)
} }
//println("sysAlloc failed: ", err)
return nil return nil
} }
mSysStatInc(sysStat, n) mSysStatInc(sysStat, n)

View File

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