1. 02 May, 2013 3 commits
  2. 01 May, 2013 6 commits
  3. 30 Apr, 2013 13 commits
  4. 29 Apr, 2013 4 commits
  5. 28 Apr, 2013 1 commit
  6. 27 Apr, 2013 1 commit
    • Dave Cheney's avatar
      runtime: tune appendCrossover for arm · d09f34cc
      Dave Cheney authored
      Turns out the optimal value is 8 on cortex-A9 systems (pandaboard)
      
      benchmark                     old ns/op    new ns/op    delta
      BenchmarkAppend                     907          908   +0.11%
      BenchmarkAppend1Byte                101          101   +0.00%
      BenchmarkAppend4Bytes               116          116   +0.00%
      BenchmarkAppend8Bytes               139          138   -0.72%
      BenchmarkAppend16Bytes              185          158  -14.59%
      BenchmarkAppend32Bytes              131          131   +0.00%
      BenchmarkAppendStr1Byte              72           72   +0.00%
      BenchmarkAppendStr4Bytes             93           93   -0.21%
      BenchmarkAppendStr8Bytes            116          116   +0.00%
      BenchmarkAppendStr16Bytes           161          125  -22.36%
      BenchmarkAppendStr32Bytes           102          102   +0.00%
      BenchmarkAppendSpecialCase          613          613   +0.00%
      
      R=golang-dev, r
      CC=golang-dev
      https://golang.org/cl/8863045
      d09f34cc
  7. 26 Apr, 2013 2 commits
  8. 25 Apr, 2013 5 commits
    • Brad Fitzpatrick's avatar
      database/sql: fix driver Conn refcounting with prepared statements · 277047f5
      Brad Fitzpatrick authored
      The refcounting of driver Conns was completedly busted and
      would leak (be held open forever) with any reasonable
      load. This was a significant regression from Go 1.0.
      
      The core of this patch is removing one line:
      
           s.db.addDep(dc, s)
      
      A database conn (dc) is a resource that be re-created any time
      (but cached for speed) should not be held open forever with a
      dependency refcount just because the Stmt (s) is alive (which
      typically last for long periods of time, like forever).
      
      The meat of the patch is new tests. In fixing the real issue,
      a lot of tests then failed due to the fakedb_test.go's paranoia
      about closing a fakeConn while it has open fakeStmts on it. I
      could've ignored that, but that's been a problem in the past for
      other bugs.
      
      Instead, I now track per-Conn open statements and close them
      when the the conn closes.  The proper way to do this would've
      been making *driverStmt a finalCloser and using the dep mechanism,
      but it was much more invasive. Added a TODO instead.
      
      I'd like to give a way for drivers to opt-out of caring about
      driver.Stmt closes before a driver.Conn close, but that's a TODO
      for the future, and that TODO is added in this CL.
      
      I know this is very late for Go 1.1, but database/sql is
      currently nearly useless without this.
      
      I'd like to believe all these database/sql bugs in the past
      release cycle are the result of increased usage, number of
      drivers, and good feedback from increasingly-capable Go
      developers, and not the result of me sucking.  It's also hard
      with all the real drivers being out-of-tree, so I'm having to
      add more and more hooks to fakedb_test.go to simulate things
      which real drivers end up doing.
      
      Fixes #5323
      
      R=golang-dev, snaury, gwenn.kahz, google, r
      CC=golang-dev
      https://golang.org/cl/8836045
      277047f5
    • Jan Ziak's avatar
      cmd/gc: initialize t->width in dgcsym() if required · 13cbf41a
      Jan Ziak authored
      Update #5291.
      
      R=golang-dev, daniel.morsing, iant, r
      CC=golang-dev
      https://golang.org/cl/8663052
      13cbf41a
    • Jan Ziak's avatar
      undo CL 8954044 / ad3c2ffb16d7 · db1c218d
      Jan Ziak authored
      It works on i386, but fails on amd64 and arm.
      
      ««« original CL description
      runtime: prevent the GC from seeing the content of a frame in runfinq()
      
      Fixes #5348.
      
      R=golang-dev, dvyukov
      CC=golang-dev
      https://golang.org/cl/8954044
      »»»
      
      R=golang-dev, r
      CC=golang-dev
      https://golang.org/cl/8695051
      db1c218d
    • Jan Ziak's avatar
      runtime: prevent the GC from seeing the content of a frame in runfinq() · e9bbe3a8
      Jan Ziak authored
      Fixes #5348.
      
      R=golang-dev, dvyukov
      CC=golang-dev
      https://golang.org/cl/8954044
      e9bbe3a8
    • Mikio Hara's avatar
      net: deflake raw IP protocol entry test on Windows · 2bd17bca
      Mikio Hara authored
      Update #5344
      
      R=golang-dev, dave, r, alex.brainman
      CC=golang-dev
      https://golang.org/cl/8934043
      2bd17bca
  9. 24 Apr, 2013 2 commits
  10. 23 Apr, 2013 3 commits
    • Mikio Hara's avatar
      net: add missing File method document · 73417e40
      Mikio Hara authored
      R=golang-dev, bradfitz, r
      CC=golang-dev
      https://golang.org/cl/8698049
      73417e40
    • Anthony Martin's avatar
      cmd/dist: fix line numbers in goc2c generated files · d33f09bc
      Anthony Martin authored
      We have to reset the global lineno variable before
      processing each file otherwise line numbers will be
      offset by the number of lines in the previous file.
      
      The following examples are from the beginning of the
      ztime_linux_amd64.c file which is generated from
      time.goc in the runtime package.
      
      Before:
          #line 2483 "/home/apm/src/go/src/pkg/runtime/time.goc"
          static Timers timers;
          static void addtimer ( Timer* ) ;
          void
          time·Sleep(int64 ns)
          {
          #line 2492 "/home/apm/src/go/src/pkg/runtime/time.goc"
      
      After:
          #line 16 "/home/apm/src/go/src/pkg/runtime/time.goc"
          static Timers timers;
          static void addtimer ( Timer* ) ;
          void
          time·Sleep(int64 ns)
          {
          #line 25 "/home/apm/src/go/src/pkg/runtime/time.goc"
      
      R=golang-dev, minux.ma, iant, r, adg
      CC=golang-dev
      https://golang.org/cl/8653045
      d33f09bc
    • Shenghou Ma's avatar
      all: fix typos · 7bec1a60
      Shenghou Ma authored
      R=golang-dev, bradfitz
      CC=golang-dev
      https://golang.org/cl/8896045
      7bec1a60