Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for tcpbig (0.29 sec)

  1. src/net/main_test.go

    	"sync"
    	"testing"
    	"time"
    )
    
    var (
    	sw socktest.Switch
    
    	// uninstallTestHooks runs just before a run of benchmarks.
    	testHookUninstaller sync.Once
    )
    
    var (
    	testTCPBig = flag.Bool("tcpbig", false, "whether to test massive size of data per read or write call on TCP connection")
    
    	testDNSFlood = flag.Bool("dnsflood", false, "whether to test DNS query flooding")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. src/net/tcpsock_test.go

    	<-done
    }
    
    // Test that >32-bit reads work on 64-bit systems.
    // On 32-bit systems this tests that maxint reads work.
    func TestTCPBig(t *testing.T) {
    	if !*testTCPBig {
    		t.Skip("test disabled; use -tcpbig to enable")
    	}
    
    	for _, writev := range []bool{false, true} {
    		t.Run(fmt.Sprintf("writev=%v", writev), func(t *testing.T) {
    			ln := newLocalListener(t, "tcp")
    			defer ln.Close()
    
    			x := int(1 << 30)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  3. test/abi/too_big_to_ssa.go

    import (
    	"fmt"
    )
    
    var sink *string
    
    type toobig struct {
    	// 6 words will not SSA but will fit in registers
    	a, b, c string
    }
    
    //go:registerparams
    //go:noinline
    func H(x toobig) string {
    	return x.a + " " + x.b + " " + x.c
    }
    
    //go:registerparams
    //go:noinline
    func I(a, b, c string) toobig {
    	return toobig{a, b, c}
    }
    
    func main() {
    	s := H(toobig{"Hello", "there,", "World"})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 833 bytes
    - Viewed (0)
  4. test/abi/struct_3_string_input.go

    package main
    
    import (
    	"fmt"
    )
    
    var sink *string
    
    type toobig struct {
    	a, b, c string
    }
    
    //go:registerparams
    //go:noinline
    func H(x toobig) string {
    	return x.a + " " + x.b + " " + x.c
    }
    
    func main() {
    	s := H(toobig{"Hello", "there,", "World"})
    	gotVsWant(s, "Hello there, World")
    }
    
    func gotVsWant(got, want string) {
    	if got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 727 bytes
    - Viewed (0)
  5. test/unsafebuiltins.go

    		// negative length
    		var neg int = -1
    		mustPanic(func() { _ = unsafe.Slice(new(byte), neg) })
    
    		// length too large
    		var tooBig uint64 = math.MaxUint64
    		mustPanic(func() { _ = unsafe.Slice(new(byte), tooBig) })
    
    		// size overflows address space
    		mustPanic(func() { _ = unsafe.Slice(new(uint64), maxUintptr/8) })
    		mustPanic(func() { _ = unsafe.Slice(new(uint64), maxUintptr/8+1) })
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 17:15:15 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/Fingerprint2011.java

      }
    
      @VisibleForTesting
      static long murmurHash64WithSeed(byte[] bytes, int offset, int length, long seed) {
        long mul = K3;
        int topBit = 0x7;
    
        int lengthAligned = length & ~topBit;
        int lengthRemainder = length & topBit;
        long hash = seed ^ (length * mul);
    
        for (int i = 0; i < lengthAligned; i += 8) {
          long loaded = load64(bytes, offset + i);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Dec 28 17:50:25 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/hash/Fingerprint2011.java

      }
    
      @VisibleForTesting
      static long murmurHash64WithSeed(byte[] bytes, int offset, int length, long seed) {
        long mul = K3;
        int topBit = 0x7;
    
        int lengthAligned = length & ~topBit;
        int lengthRemainder = length & topBit;
        long hash = seed ^ (length * mul);
    
        for (int i = 0; i < lengthAligned; i += 8) {
          long loaded = load64(bytes, offset + i);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Dec 28 17:50:25 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  8. src/encoding/gob/decoder.go

    package gob
    
    import (
    	"bufio"
    	"errors"
    	"internal/saferio"
    	"io"
    	"reflect"
    	"sync"
    )
    
    // tooBig provides a sanity check for sizes; used in several places. Upper limit
    // of is 1GB on 32-bit systems, 8GB on 64-bit, allowing room to grow a little
    // without overflow.
    const tooBig = (1 << 30) << (^uint(0) >> 62)
    
    // A Decoder manages the receipt of type and data information read from the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Internal.java

        // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for
        // durations longer than approximately +/- 292 years).
        try {
          return duration.toNanos();
        } catch (ArithmeticException tooBig) {
          return duration.isNegative() ? Long.MIN_VALUE : Long.MAX_VALUE;
        }
      }
    
      private Internal() {}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jan 11 14:30:06 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/Internal.java

        // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for
        // durations longer than approximately +/- 292 years).
        try {
          return duration.toNanos();
        } catch (ArithmeticException tooBig) {
          return duration.isNegative() ? Long.MIN_VALUE : Long.MAX_VALUE;
        }
      }
    
      private Internal() {}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top