1. 16 Sep, 2015 3 commits
    • Michael Hudson-Doyle's avatar
      test: move allocation before munmap in recover4 · 955b4caa
      Michael Hudson-Doyle authored
      recover4 allocates 16 pages of memory via mmap, makes a 4 page hole in it with
      munmap, allocates another 16 pages of memory via normal allocation and then
      tries to copy from one to the other. For some reason on arm64 (but no other
      platform I have tested) the second allocation sometimes causes the runtime to
      ask the kernel for 4 additional pages of memory -- which the kernel satisfies
      by remapping the pages that were just unmapped!
      
      Moving the second allocation before the munmap fixes this behaviour, I can run
      recover4 tens of thousands of times without failure with this fix vs a failure
      rate of ~0.5% before.
      
      Fixes #12549
      
      Change-Id: I490b895b606897e4f7f25b1b51f5d485a366fffb
      Reviewed-on: https://go-review.googlesource.com/14632Reviewed-by: default avatarDave Cheney <dave@cheney.net>
      955b4caa
    • Håvard Haugen's avatar
      cmd/compile/internal/gc: remove dead code · 7c61d24f
      Håvard Haugen authored
      Found with https://github.com/remyoudompheng/go-misc/deadcode:
      
      deadcode: walk.go:2228:1: applywritebarrier_bv is unused
      deadcode: subr.go:355:1: gethunk is unused
      deadcode: subr.go:1991:1: localexpr is unused
      deadcode: dcl.go:82:1: poptodcl is unused
      deadcode: swt.go:810:1: dumpcase is unused
      deadcode: esc.go:251:1: satAdd8 is unused
      deadcode: esc.go:387:1: outputsPerTag is unused
      deadcode: obj.go:190:1: duint64 is unused
      deadcode: obj.go:287:1: dstringptr is unused
      deadcode: plive.go:95:1: xmalloc is unused
      deadcode: plive.go:119:1: freeblock is unused
      
      followed by
      
      deadcode: go.go:633:1: hunk is unused
      deadcode: go.go:635:1: nhunk is unused
      deadcode: go.go:637:1: thunk is unused
      
      after 'gethunk' was removed.
      
      Some dead code in bv.go, mparith3.go, and dcl.go was left as is.
      
      Passes go build -a -toolexec 'toolstash -cmp' std cmd.
      
      Change-Id: Ia63519adedc8650d7095572ddd454fd923d3204d
      Reviewed-on: https://go-review.googlesource.com/14610Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      7c61d24f
    • Håvard Haugen's avatar
      cmd/compile/internal/gc: remove unnecessary stringsCompare · c1ad904b
      Håvard Haugen authored
      Remove several uses of stringsCompare.
      
      Passes go build -a -toolexec 'toolstash -cmp' std cmd.
      
      Change-Id: I3f2323df2ad8c03bad77e0a91d6e2e714803705b
      Reviewed-on: https://go-review.googlesource.com/14556Reviewed-by: default avatarDave Cheney <dave@cheney.net>
      c1ad904b
  2. 15 Sep, 2015 15 commits
  3. 14 Sep, 2015 9 commits
  4. 13 Sep, 2015 2 commits
  5. 12 Sep, 2015 3 commits
  6. 11 Sep, 2015 8 commits