1. 22 May, 2012 18 commits
    • Dmitriy Vyukov's avatar
      runtime: faster GC sweep phase · 845aa1fc
      Dmitriy Vyukov authored
      benchmark                              old ns/op    new ns/op    delta
      
      garbage.BenchmarkParser               3731065750   3715543750   -0.41%
      garbage.BenchmarkParser-2             3631299750   3495248500   -3.75%
      garbage.BenchmarkParser-4             3386486000   3339353000   -1.39%
      garbage.BenchmarkParser-8             3267632000   3286422500   +0.58%
      garbage.BenchmarkParser-16            3299203000   3316081750   +0.51%
      
      garbage.BenchmarkTree                  977532888    919453833   -5.94%
      garbage.BenchmarkTree-2                919948555    853478000   -7.23%
      garbage.BenchmarkTree-4                841329000    790207000   -6.08%
      garbage.BenchmarkTree-8                787792777    740380666   -6.01%
      garbage.BenchmarkTree-16               899257166    846594555   -5.86%
      
      garbage.BenchmarkTree2                 574876300    571885800   -0.52%
      garbage.BenchmarkTree2-2               348162700    345888900   -0.65%
      garbage.BenchmarkTree2-4               184912500    179137000   -3.22%
      garbage.BenchmarkTree2-8               104243900    103485600   -0.73%
      garbage.BenchmarkTree2-16               97269500     85137100  -14.25%
      
      garbage.BenchmarkParserPause           141101976    157746974  +11.80%
      garbage.BenchmarkParserPause-2         103096051     83043048  -19.45%
      garbage.BenchmarkParserPause-4          52153133     45951111  -11.89%
      garbage.BenchmarkParserPause-8          36730190     38901024   +5.91%
      garbage.BenchmarkParserPause-16         32678875     29578585   -9.49%
      
      garbage.BenchmarkTreePause              29487065     29648439   +0.55%
      garbage.BenchmarkTreePause-2            22443494     21306159   -5.07%
      garbage.BenchmarkTreePause-4            15799691     14985647   -5.15%
      garbage.BenchmarkTreePause-8            10768112     9531420   -12.97%
      garbage.BenchmarkTreePause-16           16329891     15205158   -6.89%
      
      garbage.BenchmarkTree2Pause           2586957240   2577533200   -0.36%
      garbage.BenchmarkTree2Pause-2         1683383760   1673923800   -0.56%
      garbage.BenchmarkTree2Pause-4         1102860320   1074040280   -2.68%
      garbage.BenchmarkTree2Pause-8          902627920    886122400   -1.86%
      garbage.BenchmarkTree2Pause-16         856470920    804152320   -6.50%
      
      garbage.BenchmarkParserLastPause       277316000    280839000   +1.25%
      garbage.BenchmarkParserLastPause-2     179446000    163687000   -8.78%
      garbage.BenchmarkParserLastPause-4     106752000     94144000  -11.81%
      garbage.BenchmarkParserLastPause-8      57758000     61640000   +6.72%
      garbage.BenchmarkParserLastPause-16     51235000     42552000  -16.95%
      
      garbage.BenchmarkTreeLastPause          45244000     50786000  +12.25%
      garbage.BenchmarkTreeLastPause-2        37163000     34654000   -6.75%
      garbage.BenchmarkTreeLastPause-4        24178000     21967000   -9.14%
      garbage.BenchmarkTreeLastPause-8        20390000     15648000  -30.30%
      garbage.BenchmarkTreeLastPause-16       22398000     20180000   -9.90%
      
      garbage.BenchmarkTree2LastPause       5748706000   5718809000   -0.52%
      garbage.BenchmarkTree2LastPause-2     3481570000   3458844000   -0.65%
      garbage.BenchmarkTree2LastPause-4     1849073000   1791330000   -3.22%
      garbage.BenchmarkTree2LastPause-8     1042375000   1034811000   -0.73%
      garbage.BenchmarkTree2LastPause-16     972637000    851323000  -14.25%
      
      There is also visible improvement in consumed CPU time:
      tree2 -heapsize=8000000000 -cpus=12
      before: 248.74user 6.36system 0:52.74elapsed 483%CPU
      after:  229.86user 6.33system 0:51.08elapsed 462%CPU
      -1.66s of real time, but -18.91s of consumed CPU time
      
      R=golang-dev
      CC=golang-dev
      https://golang.org/cl/6215065
      845aa1fc
    • Robert Griesemer's avatar
      go/ast: document CommentGroup.Text and add test case. · 581e7c2a
      Robert Griesemer authored
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/6206096
      581e7c2a
    • Brad Fitzpatrick's avatar
      net/http: improve TestServerExpect · 5a033376
      Brad Fitzpatrick authored
      Fail more usefully, and Logf in one place instead of Errorf where
      an error is acceptable.
      
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/6221059
      5a033376
    • Robert Griesemer's avatar
      go/parser: fix comment grouping (day 1 bug) · f26d6173
      Robert Griesemer authored
      Comment groups must end at the end of a line (or the
      next non-comment token) if the group started on a line
      with non-comment tokens.
      
      This is important for correct computation of "lead"
      and "line" comments (Doc and Comment fields in AST nodes).
      
      Without this fix, the "line" comment for F1 in the
      following example:
      
      type T struct {
           F1 int // comment1
           // comment2
           F2 int
      }
      
      is "// comment1// comment2" rather than just "// comment1".
      
      This bug was present from Day 1 but only visible when
      looking at export-filtered ASTs where only comments
      associated with AST nodes are printed, and only in rare
      cases (e.g, in the case above, if F2 where not exported,
      godoc would show "// comment2" anyway because it was
      considered part of the "line" comment for F1).
      
      The bug fix is very small (parser.go). The bulk of the
      changes are additional test cases (parser_test.go).
      
      The fix exposed a caching bug in go/printer via one of the
      existing tests, hence the changes to printer.go.
      
      As an aside, the fix removes the the need for empty lines
      before an "// Output" comment for some special cases of
      code examples (e.g.: src/pkg/strings/example_test.go, Count
      example).
      
      No impact on gofmt formatting of src, misc.
      
      Fixes #3139.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/6209080
      f26d6173
    • Robert Griesemer's avatar
      godoc: slightly smarter synopsis extraction · f596eb5d
      Robert Griesemer authored
      Ignore synopses that start with
      "Copyright", "All rights", and "Author".
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/6218047
      f596eb5d
    • Robert Griesemer's avatar
      go/scanner: strip carriage returns from commments · 7b9a6d8d
      Robert Griesemer authored
      Also:
      - cleaned up and simplified TestScan
      - added tests for comments containing carriage returns
      
      Fixes #3647.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/6225047
      7b9a6d8d
    • Alexey Borzenkov's avatar
      net/url: better parsing of urls with @ symbol in authority · f7277dac
      Alexey Borzenkov authored
      Fixes #3439
      
      R=r, rsc, dsymonds, n13m3y3r
      CC=golang-dev
      https://golang.org/cl/6206090
      f7277dac
    • Russ Cox's avatar
      cmd/6a: delete dead code · 6a22e2fb
      Russ Cox authored
      R=ken2
      CC=golang-dev
      https://golang.org/cl/6223060
      6a22e2fb
    • Joel Sing's avatar
      syscall: implement nametomib() on netbsd · 495a9dc2
      Joel Sing authored
      Implement nametomib() on NetBSD using the CTL_QUERY node discovery
      mechanism.
      
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/6211071
      495a9dc2
    • Benjamin Black's avatar
      crypto/x509: Add ECDSA support · 5c6162cd
      Benjamin Black authored
      R=golang-dev, agl, rsc
      CC=golang-dev
      https://golang.org/cl/6208087
      5c6162cd
    • Adam Langley's avatar
      crypto/ecdsa: add full set of NIST test vectors. · 5759c602
      Adam Langley authored
      This includes the NIST test suite for ECDSA and alters the test to
      parse and evaluate it.
      
      R=golang-dev, bradfitz, rsc, b
      CC=golang-dev
      https://golang.org/cl/6219058
      5759c602
    • Adam Langley's avatar
      crypto/ecdsa: fix case where p != 0 mod 8 and the hash length < p. · 477d7b16
      Adam Langley authored
      I made a typo which breaks P-521.
      
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/6219057
      477d7b16
    • Andrew Balholm's avatar
      exp/html: adjust inSelectIM to match spec · 8f66d7dc
      Andrew Balholm authored
      Simplify the flow of control.
      
      Handle EOF, null bytes, <html>, <input>, <keygen>, <textarea>, <script>.
      
      Pass 5 more tests.
      
      R=golang-dev, rsc, nigeltao
      CC=golang-dev
      https://golang.org/cl/6220062
      8f66d7dc
    • Russ Cox's avatar
      cmd/8a, cmd/8l: add BSWAPL · c4ea1c95
      Russ Cox authored
      R=ken2
      CC=golang-dev
      https://golang.org/cl/6208093
      c4ea1c95
    • Russ Cox's avatar
      cmd/6a, cmd/6l: add BSWAPL, BSWAPQ · ed480128
      Russ Cox authored
      R=ken2
      CC=golang-dev
      https://golang.org/cl/6209087
      ed480128
    • Russ Cox's avatar
      runtime: relax TestGcSys · 85266dfd
      Russ Cox authored
      This fixes occasional 64-bit failures.
      Maybe it will fix the 32-bit failures too,
      so re-enable on 32-bit for now.
      
      R=golang-dev, bradfitz, r, dvyukov
      CC=golang-dev
      https://golang.org/cl/6218050
      85266dfd
    • Matthew Horsnell's avatar
      debug/elf: Expose entry point from Header in File struct. · 875f34fd
      Matthew Horsnell authored
      Fixes #3470.
      
      R=rsc, golang-dev
      CC=golang-dev
      https://golang.org/cl/6195074
      875f34fd
    • Andrew Balholm's avatar
      exp/html: adjust inCellIM to match spec · 7648f61c
      Andrew Balholm authored
      Clean up flow of control.
      
      Ignore </table>, </tbody>, </tfoot>, </thead>, </tr> if there is not
      an appropriate element in table scope.
      
      Pass 3 more tests.
      
      R=golang-dev, nigeltao
      CC=golang-dev
      https://golang.org/cl/6206093
      7648f61c
  2. 21 May, 2012 5 commits
  3. 20 May, 2012 3 commits
  4. 19 May, 2012 1 commit
  5. 18 May, 2012 5 commits
  6. 17 May, 2012 8 commits