1. 03 Apr, 2015 1 commit
  2. 02 Apr, 2015 21 commits
  3. 01 Apr, 2015 15 commits
  4. 31 Mar, 2015 3 commits
    • Mikio Hara's avatar
      net: add socket system call hooks for testing · 29d1f3b8
      Mikio Hara authored
      This change adds socket system call hooks to existing test cases for
      simulating a bit complicated network conditions to help making timeout
      and dual IP stack test cases work more properly in followup changes.
      
      Also test cases print debugging information in non-short mode like the
      following:
      
      Leaked goroutines:
      net.TestWriteTimeout.func2(0xc20802a5a0, 0xc20801d000, 0x1000, 0x1000, 0xc2081d2ae0)
      	/go/src/net/timeout_test.go:170 +0x98
      created by net.TestWriteTimeout
      	/go/src/net/timeout_test.go:173 +0x745
      net.runDatagramPacketConnServer(0xc2080730e0, 0x2bd270, 0x3, 0x2c1770, 0xb, 0xc2081d2ba0, 0xc2081d2c00)
      	/go/src/net/server_test.go:398 +0x667
      created by net.TestTimeoutUDP
      	/go/src/net/timeout_test.go:247 +0xc9
      	(snip)
      
      Leaked sockets:
      3: {Cookie:615726511685632 Err:<nil> SocketErr:0}
      5: {Cookie:7934075906097152 Err:<nil> SocketErr:0}
      
      Socket statistical information:
      {Family:1 Type:805306370 Protocol:0 Opened:17 Accepted:0 Connected:5 Closed:17}
      {Family:2 Type:805306369 Protocol:0 Opened:450 Accepted:234 Connected:279 Closed:636}
      {Family:1 Type:805306369 Protocol:0 Opened:11 Accepted:5 Connected:5 Closed:16}
      {Family:28 Type:805306369 Protocol:0 Opened:95 Accepted:22 Connected:16 Closed:116}
      {Family:2 Type:805306370 Protocol:0 Opened:84 Accepted:0 Connected:34 Closed:83}
      {Family:28 Type:805306370 Protocol:0 Opened:52 Accepted:0 Connected:4 Closed:52}
      
      Change-Id: I0e84be59a0699bc31245c78e2249423459b8cdda
      Reviewed-on: https://go-review.googlesource.com/6390Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      29d1f3b8
    • Robert Griesemer's avatar
      math/big: remove NaN support - just not worth it · fa85a720
      Robert Griesemer authored
      NaNs make the API more complicated for no real good reasons.
      There are few operations that produce NaNs with IEEE arithmetic,
      there's no need to copy the behavior. It's easy to test for these
      scenarios and avoid them (on the other hand, it's not easy to test
      for overflow or underflow, so we want to keep +/-Inf).
      
      Also:
      - renamed IsNeg -> Signbit (clearer, especially for x == -0)
      - removed IsZero           (Sign() == 0 is sufficient and efficient)
      - removed IsFinite         (now same as !IsInf)
      
      Change-Id: I3f3b4445c325d9bbb1bf46ce2e298a6aeb498e07
      Reviewed-on: https://go-review.googlesource.com/8280Reviewed-by: 's avatarAlan Donovan <adonovan@google.com>
      fa85a720
    • Michael Hudson-Doyle's avatar
      runtime, cmd/internal/ld: change runtime to use a single linker symbol · 67426a8a
      Michael Hudson-Doyle authored
      In preparation for being able to run a go program that has code
      in several objects, this changes from having several linker
      symbols used by the runtime into having one linker symbol that
      points at a structure containing the needed data.  Multiple
      object support will construct a linked list of such structures.
      
      A follow up will initialize the slices in the themoduledata
      structure directly from the linker but I was aiming for a minimal
      diff for now.
      
      Change-Id: I613cce35309801cf265a1d5ae5aaca8d689c5cbf
      Reviewed-on: https://go-review.googlesource.com/7441Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
      67426a8a