1. 04 May, 2013 1 commit
  2. 03 May, 2013 5 commits
  3. 02 May, 2013 3 commits
  4. 01 May, 2013 6 commits
  5. 30 Apr, 2013 13 commits
  6. 29 Apr, 2013 4 commits
  7. 28 Apr, 2013 1 commit
  8. 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
  9. 26 Apr, 2013 2 commits
  10. 25 Apr, 2013 4 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