1. 05 Dec, 2012 6 commits
    • Dave Cheney's avatar
      cmd/5g: use MOVB for fixed array nil check · 54e8d504
      Dave Cheney authored
      Fixes #4396.
      
      For fixed arrays larger than the unmapped page, agenr would general a nil check by loading the first word of the array. However there is no requirement for the first element of a byte array to be word aligned, so this check causes a trap on ARMv5 hardware (ARMv6 since relaxed that restriction, but it probably still comes at a cost).
      
      Switching the check to MOVB ensures alignment is not an issue. This check is only invoked in a few places in the code where large fixed arrays are embedded into structs, compress/lzw is the biggest offender, and switching to MOVB has no observable performance penalty.
      
      Thanks to Rémy and Daniel Morsing for helping me debug this on IRC last night.
      
      R=remyoudompheng, minux.ma, rsc
      CC=golang-dev
      https://golang.org/cl/6854063
      54e8d504
    • Dave Cheney's avatar
      net: fix data races on deadline vars · 9fb96991
      Dave Cheney authored
      Fixes #4434.
      
      This proposal replaces the previous CL 6855110. Due to issue 599, 64-bit atomic operations should probably be avoided, so use a sync.Mutex instead.
      
      Benchmark comparisons against 025b9d070a85 on linux/386:
      
      CL 6855110:
      
      benchmark                        old ns/op    new ns/op    delta
      BenchmarkTCPOneShot                 710024       727409   +2.45%
      BenchmarkTCPOneShotTimeout          758178       768620   +1.38%
      BenchmarkTCPPersistent              223464       228058   +2.06%
      BenchmarkTCPPersistentTimeout       234494       242600   +3.46%
      
      This proposal:
      
      benchmark                        old ns/op    new ns/op    delta
      BenchmarkTCPOneShot                 710024       718492   +1.19%
      BenchmarkTCPOneShotTimeout          758178       748783   -1.24%
      BenchmarkTCPPersistent              223464       227628   +1.86%
      BenchmarkTCPPersistentTimeout       234494       238321   +1.63%
      
      R=rsc, dvyukov, mikioh.mikioh, alex.brainman, bradfitz
      CC=golang-dev, remyoudompheng
      https://golang.org/cl/6866050
      9fb96991
    • Alex Brainman's avatar
      net: change windows netFD finalizer to behave similar to unix · 4855c1c1
      Alex Brainman authored
      R=dave, mikioh.mikioh
      CC=golang-dev
      https://golang.org/cl/6873046
      4855c1c1
    • Brad Fitzpatrick's avatar
      net/http: clarify DefaultTransport docs · a7c57b05
      Brad Fitzpatrick authored
      Fixes #4281
      
      R=golang-dev, adg
      CC=golang-dev
      https://golang.org/cl/6872053
      a7c57b05
    • Alex Brainman's avatar
      net: add missing close socket code · 87b315a7
      Alex Brainman authored
      R=golang-dev, bradfitz
      CC=golang-dev
      https://golang.org/cl/6868067
      87b315a7
    • Ian Lance Taylor's avatar
      test: tweak bug273.go to not have constant len < cap when calling make · feb95a80
      Ian Lance Taylor authored
      The current spec says that when calling make, if both len and
      cap are constant, it is an error if len > cap.  The gc
      compiler does not yet implement that, but when it does this
      will need to change.  Changing it now for the benefit of
      gccgo.
      
      R=gri
      CC=golang-dev
      https://golang.org/cl/6867064
      feb95a80
  2. 04 Dec, 2012 10 commits
  3. 03 Dec, 2012 6 commits
  4. 01 Dec, 2012 5 commits
  5. 30 Nov, 2012 10 commits
  6. 29 Nov, 2012 3 commits