1. 30 Aug, 2014 8 commits
    • Matthew Dempsky's avatar
      runtime: retry fix openbsd build · b70bc22c
      Matthew Dempsky authored
      Tested on linux/amd64 too this time.
      
      LGTM=bradfitz
      R=golang-codereviews, bradfitz
      CC=dave, golang-codereviews, iant, rsc
      https://golang.org/cl/140050043
      b70bc22c
    • Kelsey Hightower's avatar
      net/http: add BasicAuth method to *http.Request · 29f9f3ec
      Kelsey Hightower authored
      The net/http package supports setting the HTTP Authorization header
      using the Basic Authentication Scheme as defined in RFC 2617, but does
      not provide support for extracting the username and password from an
      authenticated request using the Basic Authentication Scheme.
      
      Add BasicAuth method to *http.Request that returns the username and
      password from authenticated requests using the Basic Authentication
      Scheme.
      
      Fixes #6779.
      
      LGTM=bradfitz
      R=golang-codereviews, josharian, bradfitz, alberto.garcia.hierro, blakesgentry
      CC=golang-codereviews
      https://golang.org/cl/76540043
      29f9f3ec
    • Russ Cox's avatar
      runtime: increase nosplit area to 192 · 397bdb21
      Russ Cox authored
      In CL 131450043, which raised it to 160,
      I'd raise it to 192 if necessary.
      Apparently it is necessary on windows/amd64.
      
      One note for those concerned about the growth:
      in the old segmented stack world, we wasted this much
      space at the bottom of every stack segment.
      In the new contiguous stack world, each goroutine has
      only one stack segment, so we only waste this much space
      once per goroutine. So even raising the limit further might
      still be a net savings.
      
      Fixes windows/amd64 build.
      
      TBR=r
      CC=golang-codereviews
      https://golang.org/cl/132480043
      397bdb21
    • Russ Cox's avatar
      runtime: rename SysAlloc to sysAlloc for Go · 0316dafd
      Russ Cox authored
      Renaming the C SysAlloc will let Go define a prototype without exporting it.
      For use in cpuprof.goc's translation to Go.
      
      LGTM=mdempsky
      R=golang-codereviews, mdempsky
      CC=golang-codereviews, iant
      https://golang.org/cl/140060043
      0316dafd
    • Dmitriy Vyukov's avatar
      runtime: convert type algorithms to Go · d4df63c3
      Dmitriy Vyukov authored
      Actually it mostly deletes code -- alg.print and alg.copy go away.
      There was only one usage of alg.print for debug purposes.
      Alg.copy is used in chan.goc, but Keith replaces them with
      memcopy during conversion, so alg.copy is not needed as well.
      Converting them would be significant amount of work
      for no visible benefit.
      
      LGTM=crawshaw, rsc, khr
      R=golang-codereviews, crawshaw, khr
      CC=golang-codereviews, rsc
      https://golang.org/cl/139930044
      d4df63c3
    • Russ Cox's avatar
      undo CL 135230043 / 60812bad3769 · 1a976f15
      Russ Cox authored
      broke api check everywhere
      
      ««« original CL description
      runtime: fix openbsd build
      
      LGTM=iant
      R=iant, minux
      CC=golang-codereviews, jsing
      https://golang.org/cl/135230043
      
      »»»
      
      TBR=mdempsky
      CC=golang-codereviews
      https://golang.org/cl/137010043
      1a976f15
    • Alex A Skinner's avatar
      net: implement query-response fast failover in builtin dns stub resolver · 39a021bc
      Alex A Skinner authored
      Speed improvements via code cleanup, and changes to make go dns behave more like glibc resolver.  See https://groups.google.com/forum/#!topic/golang-dev/lV-0aHqxVeo
      
      Fixes #6579.
      
      Benchmark results on linux/amd64
      
      benchmark                                  old ns/op    new ns/op    delta
      BenchmarkGoLookupIP                          4831903      2572937  -46.75%
      BenchmarkGoLookupIPNoSuchHost               10114105      2419641  -76.08%
      BenchmarkGoLookupIPWithBrokenNameServer  20007735624   5004490730  -74.99%
      
      benchmark                                 old allocs   new allocs    delta
      BenchmarkGoLookupIP                              287          288    0.35%
      BenchmarkGoLookupIPNoSuchHost                    204          102  -50.00%
      BenchmarkGoLookupIPWithBrokenNameServer          410          358  -12.68%
      
      benchmark                                  old bytes    new bytes    delta
      BenchmarkGoLookupIP                            13181        13271    0.68%
      BenchmarkGoLookupIPNoSuchHost                  17260         8714  -49.51%
      BenchmarkGoLookupIPWithBrokenNameServer        28160        22432  -20.34%
      
      LGTM=mikioh.mikioh
      R=golang-codereviews, mikioh.mikioh, bradfitz, josharian, abursavich
      CC=golang-codereviews
      https://golang.org/cl/128820043
      39a021bc
    • Matthew Dempsky's avatar
      runtime: fix openbsd build · 2758cb75
      Matthew Dempsky authored
      LGTM=iant
      R=iant, minux
      CC=golang-codereviews, jsing
      https://golang.org/cl/135230043
      2758cb75
  2. 29 Aug, 2014 25 commits
  3. 28 Aug, 2014 7 commits