1. 01 Sep, 2014 13 commits
  2. 31 Aug, 2014 1 commit
  3. 30 Aug, 2014 16 commits
  4. 29 Aug, 2014 10 commits
    • Ian Lance Taylor's avatar
      runtime: rename Sigaltstack to SigaltstackT · 0b9e4723
      Ian Lance Taylor authored
      Avoids a conflict between the type and function sigaltstack.
      
      LGTM=crawshaw
      R=rsc, crawshaw
      CC=golang-codereviews
      https://golang.org/cl/138920043
      0b9e4723
    • Mikio Hara's avatar
      undo CL 107150043 / caa2646daa63 · 21967f2c
      Mikio Hara authored
      preparing for the syscall package freeze.
      the change for issue 8218 is only applied to go.sys/unix.
      
      ««« original CL description
      syscall: implement setresuid(2) and setresgid(2) on OpenBSD/FreeBSD/DragonflyBSD
      
      Fixes #8218.
      
      LGTM=iant
      R=golang-codereviews, iant, minux
      CC=golang-codereviews
      https://golang.org/cl/107150043
      
      »»»
      
      LGTM=r
      R=r, iant, golang-codereviews
      CC=golang-codereviews
      https://golang.org/cl/138840044
      21967f2c
    • Alex A Skinner's avatar
      net: ensure identical queries are not sent multiple times in builtin stub resolver · 854dbb7f
      Alex A Skinner authored
      Prevents non-rooted queries with > ndots dots from being tried twice on error.
      Fixes #8616.
      
      Benchmark results on linux/amd64
      benchmark                        old ns/op    new ns/op    delta
      BenchmarkGoLookupIPNoSuchHost      8212394      4413293  -46.26%
      
      benchmark                       old allocs   new allocs    delta
      BenchmarkGoLookupIPNoSuchHost          216          108  -50.00%
      
      benchmark                        old bytes    new bytes    delta
      BenchmarkGoLookupIPNoSuchHost        17460         8726  -50.02%
      
      LGTM=iant, mikioh.mikioh
      R=golang-codereviews, iant, mikioh.mikioh
      CC=golang-codereviews
      https://golang.org/cl/137870043
      854dbb7f
    • Russ Cox's avatar
      runtime: make allp a static array · 858c57f5
      Russ Cox authored
      It is anyway, just an allocated one.
      Giving it a sized type makes Go access nicer.
      
      LGTM=iant
      R=dvyukov, iant
      CC=golang-codereviews
      https://golang.org/cl/139960043
      858c57f5
    • Russ Cox's avatar
      runtime: convert lock*.c to Go · 3a7f6646
      Russ Cox authored
      LGTM=r, iant
      R=golang-codereviews, r, iant
      CC=dvyukov, golang-codereviews, khr
      https://golang.org/cl/139930043
      3a7f6646
    • Russ Cox's avatar
      runtime: include constants and defs_*_*.h types in generated Go defs · 9a75c748
      Russ Cox authored
      I had to rename Kevent and Sigaction to avoid the functions of the
      same (lowercase) name.
      
      LGTM=iant, r
      R=golang-codereviews, r, iant, aram.h
      CC=dvyukov, golang-codereviews, khr
      https://golang.org/cl/140740043
      9a75c748
    • Adam Langley's avatar
      crypto: add Signer · 7f2e68e9
      Adam Langley authored
      Signer is an interface to support opaque private keys.
      These keys typically result from being kept in special hardware
      (i.e. a TPM) although sometimes operating systems provide a
      similar interface using process isolation for security rather
      than hardware boundaries.
      
      This changes provides interfaces for representing them and
      alters crypto/tls so that client certificates can use
      opaque keys.
      
      LGTM=bradfitz
      R=bradfitz
      CC=golang-codereviews, jdeprez
      https://golang.org/cl/114680043
      7f2e68e9
    • Rob Pike's avatar
      text/template/parse: restore pointer-only receivers for Type on Dot and Nil · 7dc2b3cb
      Rob Pike authored
      Needless except that the api tool complains. We could fix that issue instead.
      
      TBR=bradfitz
      R=golang-codereviews
      CC=golang-codereviews
      https://golang.org/cl/133290043
      7dc2b3cb
    • Russ Cox's avatar
      runtime: run runtime.init · 1d0c89a4
      Russ Cox authored
      Run it right before main.init.
      There is still some runtime initialization that
      happens before runtime.init, and some of that
      may call into Go code (for example to acquire locks)
      so this timing is not perfect, but I believe it is the
      best we can do.
      
      This came up because global variables intialized
      to func values are done in the generated init code,
      not in the linker.
      
      LGTM=dvyukov
      R=dvyukov
      CC=golang-codereviews, iant, khr, r
      https://golang.org/cl/135210043
      1d0c89a4
    • Russ Cox's avatar
      cmd/gc: allow runtime to define a hex integer type for printing · 4af796fb
      Russ Cox authored
      As part of the translation of the runtime, we need to rewrite
      C printf calls to Go print calls. Consider this C printf:
      
              runtime·printf("[signal %x code=%p addr=%p pc=%p]\n",
                      g->sig, g->sigcode0, g->sigcode1, g->sigpc);
      
      Today the only way to write that in Go is:
      
              print("[signal ")
              printhex(uint64(g->sig))
              print(" code=")
              printhex(uint64(g->sigcode0))
              print(" addr=")
              printhex(uint64(g->sigcode1))
              print(" pc=")
              printhex(uint64(g->sigpc))
              print("]\n")
      
      (That's nearly exactly what runtime code looked like in C before
      I added runtime·printf.)
      
      This CL recognizes the unexported type runtime.hex as an integer
      that should be printed in hexadecimal instead of decimal.
      It's a little kludgy, but it's restricted to package runtime.
      Other packages can define type hex with no effect at all.
      
      Now we can translate that original printf as the more compact:
      
              print("[signal ", hex(g->sig), " code=", hex(g->sigcode0),
                      " addr=", hex(g->sigcode1), " pc=", hex(g->sigpc), "]\n")
      
      LGTM=r, iant
      R=r, iant
      CC=golang-codereviews
      https://golang.org/cl/133220043
      4af796fb