1. 17 Nov, 2012 8 commits
  2. 16 Nov, 2012 7 commits
  3. 15 Nov, 2012 8 commits
  4. 14 Nov, 2012 11 commits
  5. 13 Nov, 2012 6 commits
    • Robert Griesemer's avatar
      reflect: fix FieldByNameFunc · aa388017
      Robert Griesemer authored
      The existing algorithm did not properly propagate the type
      count from one level to the next, and as a consequence it
      missed collisions.
      
      Properly propagate multiplicity (count) information to the
      next level.
      
      benchmark                old ns/op    new ns/op    delta
      BenchmarkFieldByName1          182          180   -1.10%
      BenchmarkFieldByName2         6273         6183   -1.43%
      BenchmarkFieldByName3        49267        46784   -5.04%
      
      Fixes #4355.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/6821094
      aa388017
    • Russ Cox's avatar
      cmd/ld: fix build on elf systems · 2e77bc48
      Russ Cox authored
      TBR=iant
      CC=golang-dev
      https://golang.org/cl/6843050
      2e77bc48
    • Russ Cox's avatar
      reflect: add ArrayOf, ChanOf, MapOf, SliceOf · 11209825
      Russ Cox authored
      In order to add these, we need to be able to find references
      to such types that already exist in the binary. To do that, introduce
      a new linker section holding a list of the types corresponding to
      arrays, chans, maps, and slices.
      
      To offset the storage cost of this list, and to simplify the code,
      remove the interface{} header from the representation of a
      runtime type. It was used in early versions of the code but was
      made obsolete by the kind field: a switch on kind is more efficient
      than a type switch.
      
      In the godoc binary, removing the interface{} header cuts two
      words from each of about 10,000 types. Adding back the list of pointers
      to array, chan, map, and slice types reintroduces one word for
      each of about 500 types. On a 64-bit machine, then, this CL *removes*
      a net 156 kB of read-only data from the binary.
      
      This CL does not include the needed support for precise garbage
      collection. I have created issue 4375 to track that.
      
      This CL also does not set the 'algorithm' - specifically the equality
      and copy functions - for a new array correctly, so I have unexported
      ArrayOf for now. That is also part of issue 4375.
      
      Fixes #2339.
      
      R=r, remyoudompheng, mirtchovski, iant
      CC=golang-dev
      https://golang.org/cl/6572043
      11209825
    • Brad Fitzpatrick's avatar
      cmd/api: use one token.FileSet for all contexts · 0eb42fa6
      Brad Fitzpatrick authored
      Prep for future CL.
      
      R=gri
      CC=golang-dev
      https://golang.org/cl/6843048
      0eb42fa6
    • Russ Cox's avatar
      runtime: allow up to 128 GB of allocated memory · 9799a5a4
      Russ Cox authored
      Incorporates code from CL 6828055.
      
      Fixes #2142.
      
      R=golang-dev, iant, devon.odell
      CC=golang-dev
      https://golang.org/cl/6826088
      9799a5a4
    • Joel Sing's avatar
      syscall: regenerate z-files for openbsd/amd64 · fc5e64cb
      Joel Sing authored
      Regenerate z-files for OpenBSD/amd64 on OpenBSD 5.2.
      
      R=golang-dev, bradfitz, mikioh.mikioh
      CC=golang-dev
      https://golang.org/cl/6843045
      fc5e64cb