1. 24 Sep, 2012 12 commits
    • Russ Cox's avatar
      cmd/gc: fix comment for caninl · 031b389a
      Russ Cox authored
      Was describing an old implementation.
      
      R=ken2
      CC=golang-dev
      https://golang.org/cl/6553066
      031b389a
    • Akshat Kumar's avatar
      cmd/dist, pkg/runtime: Plan 9, 64-bit: Get PID from TLS; remove use of `_tos'. · e4278862
      Akshat Kumar authored
      Using offsets from Tos is cumbersome and we've had problems
      in the past. Since it's only being used to grab the PID, we'll just
      get that from the default TLS instead.
      
      R=rsc, rminnich, npe
      CC=golang-dev
      https://golang.org/cl/6543049
      e4278862
    • Russ Cox's avatar
      reflect: fix mistake in error message · 8696b084
      Russ Cox authored
      Pointed out by James Chalfant after submit of CL 65000655.
      
      TBR=golang-dev
      CC=golang-dev
      https://golang.org/cl/6543067
      8696b084
    • Russ Cox's avatar
      encoding/asn1: prepare for 64-bit ints · 2f066155
      Russ Cox authored
      The code was assuming that int = 32 bits. Don't.
      
      Update #2188.
      
      R=agl
      CC=golang-dev
      https://golang.org/cl/6543063
      2f066155
    • Nigel Tao's avatar
      compress/flate: move the history buffer out of the decompressor struct. · 6efa6488
      Nigel Tao authored
      I'm not exactly sure why there's a performance gain, but it seems like
      an easy win. Maybe it's a cache line thing. Maybe it's that
      unsafe.Sizeof(decompressor{}) drops to below unmappedzero, so that
      checkref/checkoffset don't need to insert TESTB instructions. Maybe
      it's less noise for the conservative garbage collector. Maybe it's
      something else.
      
      compress/flate benchmarks:
      BenchmarkDecodeDigitsSpeed1e4          378628       349906   -7.59%
      BenchmarkDecodeDigitsSpeed1e5         3481976      3204898   -7.96%
      BenchmarkDecodeDigitsSpeed1e6        34419500     31750660   -7.75%
      BenchmarkDecodeDigitsDefault1e4        362317       335562   -7.38%
      BenchmarkDecodeDigitsDefault1e5       3290032      3107624   -5.54%
      BenchmarkDecodeDigitsDefault1e6      30542540     28937480   -5.26%
      BenchmarkDecodeDigitsCompress1e4       362803       335158   -7.62%
      BenchmarkDecodeDigitsCompress1e5      3294512      3114526   -5.46%
      BenchmarkDecodeDigitsCompress1e6     30514940     28927090   -5.20%
      BenchmarkDecodeTwainSpeed1e4           412818       389521   -5.64%
      BenchmarkDecodeTwainSpeed1e5          3475780      3288908   -5.38%
      BenchmarkDecodeTwainSpeed1e6         33629640     31931420   -5.05%
      BenchmarkDecodeTwainDefault1e4         369736       348850   -5.65%
      BenchmarkDecodeTwainDefault1e5        2861050      2721383   -4.88%
      BenchmarkDecodeTwainDefault1e6       27120120     25862050   -4.64%
      BenchmarkDecodeTwainCompress1e4        372057       350822   -5.71%
      BenchmarkDecodeTwainCompress1e5       2855109      2718664   -4.78%
      BenchmarkDecodeTwainCompress1e6      26987010     26336030   -2.41%
      
      image/png benchmarks:
      BenchmarkDecodeGray               1841839      1802251   -2.15%
      BenchmarkDecodeNRGBAGradient      7115318      6933280   -2.56%
      BenchmarkDecodeNRGBAOpaque        6135892      6013284   -2.00%
      BenchmarkDecodePaletted           1153313      1114302   -3.38%
      BenchmarkDecodeRGB                5619404      5511190   -1.93%
      
      R=rsc, r
      CC=golang-dev
      https://golang.org/cl/6533048
      6efa6488
    • Marcel van Lohuizen's avatar
      exp/locale/collate/tools/colcmp: implementation of colcmp tool used for comparing · 5e47b779
      Marcel van Lohuizen authored
      various implementation of collation.  The tool provides commands for soring,
      regressing one implementation against another, and benchmarking.
      Currently it includes collation implementations for the Go collator, ICU,
      and one using Darwin's CoreFoundation framework.
      To avoid building this tool in the default build, the colcmp tag has been
      added to all files. This allows other tools/colcmp in this directory (e.g. it may make
      sense to move maketables here) to be put in this directory as well.
      
      R=r, rsc, mpvl
      CC=golang-dev
      https://golang.org/cl/6496118
      5e47b779
    • Russ Cox's avatar
      test: prepare for 64-bit ints · 0d82e698
      Russ Cox authored
      Minor tweaks to avoid assuming that int is always 32 bits.
      
      Update #2188.
      
      R=golang-dev, r
      CC=golang-dev
      https://golang.org/cl/6553062
      0d82e698
    • Russ Cox's avatar
      test: minor fixes in run and testlib · 3cd890dd
      Russ Cox authored
      Can tell this doesn't get run very often, but it is still important
      for when you've broken everything else.
      
      R=golang-dev, r
      CC=golang-dev
      https://golang.org/cl/6547065
      3cd890dd
    • Russ Cox's avatar
      syscall: prepare for 64-bit ints · 3d5ddffa
      Russ Cox authored
      This CL fixes code that incorrectly assumes that int is 32 bits wide.
      Specifically, the socketpair system call expects a pointer to a pair
      of int32s, not a pair of ints. Fix this inside the wrappers without
      changing the APIs.
      
      Update #2188.
      
      R=golang-dev, r
      CC=golang-dev
      https://golang.org/cl/6552063
      3d5ddffa
    • Rob Pike's avatar
      text/template: allow .Field access to parenthesized expressions · 9050550c
      Rob Pike authored
      Change the grammar so that field access is a proper operator.
      This introduces a new node, ChainNode, into the public (but
      actually internal) API of text/template/parse. For
      compatibility, we only use the new node type for the specific
      construct, which was not parseable before. Therefore this
      should be backward-compatible.
      
      Before, .X.Y was a token in the lexer; this CL breaks it out
      into .Y applied to .X. But for compatibility we mush them
      back together before delivering. One day we might remove
      that hack; it's the simple TODO in parse.go/operand.
      
      This change also provides grammatical distinction between
              f
      and
              (f)
      which might permit function values later, but not now.
      
      Fixes #3999.
      
      R=golang-dev, dsymonds, gri, rsc, mikesamuel
      CC=golang-dev
      https://golang.org/cl/6494119
      9050550c
    • Russ Cox's avatar
      time: prepare for 64-bit ints · edce6349
      Russ Cox authored
      The code was trying to interpret a uint32 n as a signed quantity
      and then store it in an int. For this, int(n) currently works, but when
      int becomes 64 bits one must write int(int32(n)) instead, to get
      the 32-bit sign extension.
      
      Update #2188.
      
      R=golang-dev, nigeltao
      CC=golang-dev
      https://golang.org/cl/6551068
      edce6349
    • Alex Brainman's avatar
      net/http: use r.Body.Close to close connection during TestServeFileFromCWD · 5d50dbc5
      Alex Brainman authored
      Fixes #3917.
      
      R=golang-dev, bradfitz
      CC=golang-dev
      https://golang.org/cl/6553061
      5d50dbc5
  2. 23 Sep, 2012 7 commits
  3. 22 Sep, 2012 6 commits
  4. 21 Sep, 2012 10 commits
  5. 20 Sep, 2012 5 commits