1. 17 Dec, 2012 12 commits
    • Rick Arnold's avatar
      net/smtp: remove data race from TestSendMail. · bcb495b3
      Rick Arnold authored
      A data race was found in TestSendMail by the race detector.
      
      Fixes #4559.
      
      R=golang-dev, bradfitz, dave, rsc
      CC=golang-dev
      https://golang.org/cl/6944057
      bcb495b3
    • Shenghou Ma's avatar
      os: fix docs for Expand · 57ae2e73
      Shenghou Ma authored
      there is no concept of “undefined” variables for Expand。
      
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/6946063
      57ae2e73
    • Shenghou Ma's avatar
      net/http/pprof: fix doc for /debug/pprof/ · a89aaad1
      Shenghou Ma authored
      Fixes #4548.
      
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/6944053
      a89aaad1
    • Shenghou Ma's avatar
      api/next.txt: update · a58668ca
      Shenghou Ma authored
      R=golang-dev, rsc, bradfitz
      CC=golang-dev
      https://golang.org/cl/6935061
      a58668ca
    • Christopher Nielsen's avatar
      syscall: document that documentation is platform specific · 39835b4a
      Christopher Nielsen authored
      Fixes #4051
      
      R=golang-dev, minux.ma, rsc
      CC=golang-dev
      https://golang.org/cl/6943063
      39835b4a
    • Dmitriy Vyukov's avatar
      cmd/gc: racewalk: fix compiler crash · ca4b868e
      Dmitriy Vyukov authored
      The code:
      func main() {
              v := make([]int64, 10)
              i := 1
              _ = v[(i*4)/3]
      }
      crashes compiler with:
      
      Program received signal SIGSEGV, Segmentation fault.
      0x000000000043c274 in walkexpr (np=0x7fffffffc9b8, init=0x0) at src/cmd/gc/walk.c:587
      587			*init = concat(*init, n->ninit);
      (gdb) bt
      #0  0x000000000043c274 in walkexpr (np=0x7fffffffc9b8, init=0x0) at src/cmd/gc/walk.c:587
      #1  0x0000000000432d15 in copyexpr (n=0x7ffff7f69a48, t=<optimized out>, init=0x0) at src/cmd/gc/subr.c:2020
      #2  0x000000000043f281 in walkdiv (init=0x0, np=0x7fffffffca70) at src/cmd/gc/walk.c:2901
      #3  walkexpr (np=0x7ffff7f69760, init=0x0) at src/cmd/gc/walk.c:956
      #4  0x000000000043d801 in walkexpr (np=0x7ffff7f69bc0, init=0x0) at src/cmd/gc/walk.c:988
      #5  0x000000000043cc9b in walkexpr (np=0x7ffff7f69d38, init=0x0) at src/cmd/gc/walk.c:1068
      #6  0x000000000043c50b in walkexpr (np=0x7ffff7f69f50, init=0x0) at src/cmd/gc/walk.c:879
      #7  0x000000000043c50b in walkexpr (np=0x7ffff7f6a0c8, init=0x0) at src/cmd/gc/walk.c:879
      #8  0x0000000000440a53 in walkexprlist (l=0x7ffff7f6a0c8, init=0x0) at src/cmd/gc/walk.c:357
      #9  0x000000000043d0bf in walkexpr (np=0x7fffffffd318, init=0x0) at src/cmd/gc/walk.c:566
      #10 0x00000000004402bf in vmkcall (fn=<optimized out>, t=0x0, init=0x0, va=0x7fffffffd368) at src/cmd/gc/walk.c:2275
      #11 0x000000000044059a in mkcall (name=<optimized out>, t=0x0, init=0x0) at src/cmd/gc/walk.c:2287
      #12 0x000000000042862b in callinstr (np=0x7fffffffd4c8, init=0x7fffffffd568, wr=0, skip=<optimized out>) at src/cmd/gc/racewalk.c:478
      #13 0x00000000004288b7 in racewalknode (np=0x7ffff7f68108, init=0x7fffffffd568, wr=0, skip=0) at src/cmd/gc/racewalk.c:287
      #14 0x0000000000428781 in racewalknode (np=0x7ffff7f65840, init=0x7fffffffd568, wr=0, skip=0) at src/cmd/gc/racewalk.c:302
      #15 0x0000000000428abd in racewalklist (l=0x7ffff7f65840, init=0x0) at src/cmd/gc/racewalk.c:97
      #16 0x0000000000428d0b in racewalk (fn=0x7ffff7f5f010) at src/cmd/gc/racewalk.c:63
      #17 0x0000000000402b9c in compile (fn=0x7ffff7f5f010) at src/cmd/6g/../gc/pgen.c:67
      #18 0x0000000000419f86 in funccompile (n=0x7ffff7f5f010, isclosure=0) at src/cmd/gc/dcl.c:1414
      #19 0x0000000000424161 in p9main (argc=<optimized out>, argv=<optimized out>) at src/cmd/gc/lex.c:431
      #20 0x0000000000401739 in main (argc=<optimized out>, argv=<optimized out>) at src/lib9/main.c:35
      
      The problem is nil init passed to mkcall().
      
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/6940045
      ca4b868e
    • Oling Cat's avatar
      fmt: fix a typo · 6dd7da85
      Oling Cat authored
      R=golang-dev, dsymonds
      CC=golang-dev
      https://golang.org/cl/6937065
      6dd7da85
    • Rémy Oudompheng's avatar
      encoding/json: cleanup leftover redundant variables. · 8c86f1f3
      Rémy Oudompheng authored
      Those variables come from ancient times when reflect.Value was
      an interface.
      
      R=dave, rsc
      CC=golang-dev
      https://golang.org/cl/6946059
      8c86f1f3
    • Rick Arnold's avatar
      net/smtp: add optional Hello method · 475dee90
      Rick Arnold authored
      Add a Hello method that allows clients to set the server sent in the EHLO/HELO exchange; the default remains localhost.
      Based on CL 5555045 by rsc.
      
      Fixes #4219.
      
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/6946057
      475dee90
    • Jan Ziak's avatar
      runtime: struct Obj in mgc0.c and buffers in scanblock() · 013fa63c
      Jan Ziak authored
      Details:
      
      - This CL is the conceptual skeleton of code found in CL 6114046
      
      - The garbage collector uses struct Obj to specify memory blocks
      
      - scanblock() is putting found memory blocks into an intermediate buffer
        (xbuf) before adding/flushing them to the main work buffer (wbuf)
      
      - The main loop in scanblock() is replaced with a skeleton code that
        in the future will be able to recognize the type of objects and
        thus will improve the garbage collector's precision.
        For now, all objects are simply sequences of pointers so
        the precision of the garbage collector remains unchanged.
      
      - The code plugs .gcdata and .gcbss sections into the garbage collector.
        scanblock() in this CL is unable to make any use of this.
      
      R=rsc, dvyukov, remyoudompheng
      CC=dave, golang-dev, minux.ma
      https://golang.org/cl/6856121
      013fa63c
    • Christopher Cahoon's avatar
      cmd/fix: Add keys to printer.Config composite literals. · c00371ea
      Christopher Cahoon authored
      Fixes #4499.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/6931046
      c00371ea
    • Russ Cox's avatar
      A+C: Christopher Cahoon (individual CLA) · 63765370
      Russ Cox authored
      Generated by addca.
      
      R=gobot
      CC=golang-dev
      https://golang.org/cl/6947067
      63765370
  2. 16 Dec, 2012 2 commits
  3. 15 Dec, 2012 2 commits
  4. 14 Dec, 2012 6 commits
  5. 13 Dec, 2012 16 commits
  6. 12 Dec, 2012 2 commits