1. 02 Feb, 2014 1 commit
  2. 01 Feb, 2014 1 commit
  3. 31 Jan, 2014 5 commits
  4. 30 Jan, 2014 8 commits
    • Rémy Oudompheng's avatar
      cmd/gc: do not consider length zero arrays as comparable. · 502958ff
      Rémy Oudompheng authored
      Array values are comparable if values of the array element type
      are comparable.
      
      Fixes #6526.
      
      LGTM=khr
      R=rsc, bradfitz, khr
      CC=golang-codereviews
      https://golang.org/cl/58580043
      502958ff
    • Ian Lance Taylor's avatar
      cmd/ld: fix bug with "runtime/cgo" in external link mode · 1683dab7
      Ian Lance Taylor authored
      In external link mode the linker explicitly adds the string
      constant "runtime/cgo".  It adds the string constant using the
      same symbol name as the compiler, but a different format.  The
      compiler assumes that the string data immediately follows the
      string header, but the linker puts the two in different
      sections.  The result is bad string data when the compiler
      sees "runtime/cgo" used as a string constant.
      
      The compiler assumption is in datastring in [568]g/gobj.c.
      The linker layout is in addstrdata in ld/data.c.  The compiler
      assumption is valid for string literals.  The linker is not
      creating a string literal, so its assumption is also valid.
      
      There are a few ways to avoid this problem.  This patch fixes
      it by only doing the fake import of runtime/cgo if necessary,
      and by only creating the string symbol if necessary.
      
      Fixes #7234.
      
      LGTM=dvyukov
      R=golang-codereviews, dvyukov, bradfitz
      CC=golang-codereviews
      https://golang.org/cl/58410043
      1683dab7
    • David du Colombier's avatar
      net/http: temporarily disable the failing tests on Plan 9 · 73b0d84c
      David du Colombier authored
      Update #7237
      
      LGTM=bradfitz
      R=jas, bradfitz
      CC=golang-codereviews
      https://golang.org/cl/57190045
      73b0d84c
    • Dmitriy Vyukov's avatar
      runtime: increase page size to 8K · e48751e2
      Dmitriy Vyukov authored
      Tcmalloc uses 8K, 32K and 64K pages, and in custom setups 256K pages.
      Only Chromium uses 4K pages today (in "slow but small" configuration).
      The general tendency is to increase page size, because it reduces
      metadata size and DTLB pressure.
      This change reduces GC pause by ~10% and slightly improves other metrics.
      
      json-1
      allocated                 8037492      8038689      +0.01%
      allocs                     105762       105573      -0.18%
      cputime                 158400000    155800000      -1.64%
      gc-pause-one              4412234      4135702      -6.27%
      gc-pause-total            2647340      2398707      -9.39%
      rss                      54923264     54525952      -0.72%
      sys-gc                    3952624      3928048      -0.62%
      sys-heap                 46399488     46006272      -0.85%
      sys-other                 5597504      5290304      -5.49%
      sys-stack                  393216       393216      +0.00%
      sys-total                56342832     55617840      -1.29%
      time                    158478890    156046916      -1.53%
      virtual-mem             256548864    256593920      +0.02%
      
      garbage-1
      allocated                 2991113      2986259      -0.16%
      allocs                      62844        62652      -0.31%
      cputime                  16330000     15860000      -2.88%
      gc-pause-one            789108229    725555211      -8.05%
      gc-pause-total            3945541      3627776      -8.05%
      rss                    1143660544   1132253184      -1.00%
      sys-gc                   65609600     65806208      +0.30%
      sys-heap               1032388608   1035599872      +0.31%
      sys-other                37501632     22777664     -39.26%
      sys-stack                 8650752      8781824      +1.52%
      sys-total              1144150592   1132965568      -0.98%
      time                     16364602     15891994      -2.89%
      virtual-mem            1327296512   1313746944      -1.02%
      
      This is the exact reincarnation of already LGTMed:
      https://golang.org/cl/45770044
      which must not break darwin/freebsd after:
      https://golang.org/cl/56630043
      TBR=iant
      
      LGTM=khr, iant
      R=iant, khr
      CC=golang-codereviews
      https://golang.org/cl/58230043
      e48751e2
    • Brad Fitzpatrick's avatar
      net/http: use a struct instead of a string in transport conn cache key · ae8251b0
      Brad Fitzpatrick authored
      The Transport's idle connection cache is keyed by a string,
      for pre-Go 1.0 reasons.  Ever since Go has been able to use
      structs as map keys, there's been a TODO in the code to use
      structs instead of allocating strings. This change does that.
      
      Saves 3 allocatins and ~100 bytes of garbage per client
      request. But because string hashing is so fast these days
      (thanks, Keith), the performance is a wash: what we gain
      on GC and not allocating, we lose in slower hashing. (hashing
      structs of strings is slower than 1 string)
      
      This seems a bit faster usually, but I've also seen it be a
      bit slower. But at least it's how I've wanted it now, and it
      the allocation improvements are consistent.
      
      LGTM=adg
      R=adg
      CC=golang-codereviews
      https://golang.org/cl/58260043
      ae8251b0
    • Rémy Oudompheng's avatar
      encoding/gob: fix two crashes on corrupted data. · 7a73f327
      Rémy Oudompheng authored
      Fixes #6323.
      
      LGTM=r
      R=r
      CC=golang-codereviews
      https://golang.org/cl/56870043
      7a73f327
    • Jeff Sickel's avatar
      net: net: better IPv4 stack probe on Plan 9 · 1e89eb2c
      Jeff Sickel authored
      LGTM=mischief, mikioh.mikioh
      R=golang-codereviews, 0intro, mischief, mikioh.mikioh
      CC=golang-codereviews
      https://golang.org/cl/53960044
      1e89eb2c
    • Rob Pike's avatar
      cmd/8g: don't crash if Prog->u.branch is nil · 289d4639
      Rob Pike authored
      The code is copied from cmd/6g.
      Empirically, all branch targets are nil in this code so
      something is still wrong, but at least this stops 8g -S
      from crashing.
      
      Update #7178
      
      LGTM=dave, iant
      R=iant, dave
      CC=golang-codereviews
      https://golang.org/cl/58400043
      289d4639
  5. 29 Jan, 2014 5 commits
  6. 28 Jan, 2014 10 commits
  7. 27 Jan, 2014 10 commits