Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 47 for maxsize (0.23 sec)

  1. android/guava/src/com/google/common/collect/CompactHashMap.java

        Preconditions.checkArgument(expectedSize >= 0, "Expected size must be >= 0");
    
        // Save expectedSize for use in allocArrays()
        this.metadata = Ints.constrainToRange(expectedSize, 1, CompactHashing.MAX_SIZE);
      }
    
      /** Returns whether arrays need to be allocated. */
      boolean needsAllocArrays() {
        return table == null;
      }
    
      /** Handle lazy allocation of arrays. */
      @CanIgnoreReturnValue
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue May 28 18:11:09 UTC 2024
    - 35.8K bytes
    - Viewed (0)
  2. src/net/main_test.go

    	"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")
    
    	// If external IPv4 connectivity exists, we can try dialing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. cmd/erasure-healing-common.go

    	// Return the collected common max time, with maxima
    	return latest, maxima
    }
    
    // commonTime returns a maximally occurring time from a list of time.
    func commonTimeAndOccurrence(times []time.Time, group time.Duration) (maxTime time.Time, maxima int) {
    	timeOccurrenceMap := make(map[int64]int, len(times))
    	groupNano := group.Nanoseconds()
    	// Ignore the uuid sentinel and count the rest.
    	for _, t := range times {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  4. src/runtime/map_test.go

    	// The size of hmap should be 48 bytes on 64 bit and 28 bytes on 32 bit platforms.
    	var hmapSize = uintptr(8 + 5*goarch.PtrSize)
    	if runtime.RuntimeHmapSize != hmapSize {
    		t.Errorf("sizeof(runtime.hmap{})==%d, want %d", runtime.RuntimeHmapSize, hmapSize)
    	}
    
    }
    
    // negative zero is a good test because:
    //  1. 0 and -0 are equal, yet have distinct representations.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  5. src/runtime/runtime.go

    var ticks ticksType
    
    type ticksType struct {
    	// lock protects access to start* and val.
    	lock       mutex
    	startTicks int64
    	startTime  int64
    	val        atomic.Int64
    }
    
    // init initializes ticks to maximize the chance that we have a good ticksPerSecond reference.
    //
    // Must not run concurrently with ticksPerSecond.
    func (t *ticksType) init() {
    	lock(&ticks.lock)
    	t.startTime = nanotime()
    	t.startTicks = cputicks()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. pkg/volume/util/atomic_writer_test.go

    	if err == nil {
    		t.Fatalf("unexpected success creating writer for nonexistent target dir: %v", err)
    	}
    }
    
    func TestValidatePath(t *testing.T) {
    	maxPath := strings.Repeat("a", maxPathLength+1)
    	maxFile := strings.Repeat("a", maxFileNameLength+1)
    
    	cases := []struct {
    		name  string
    		path  string
    		valid bool
    	}{
    		{
    			name:  "valid 1",
    			path:  "i/am/well/behaved.txt",
    			valid: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            };
        ListenableFuture<@Nullable Void> future = submit(runnable, executor);
        assertThat(future.isDone()).isFalse();
        assertThat(executedRunnables).isEmpty();
        assertThat(pendingRunnables).hasSize(1);
        pendingRunnables.remove(0).run();
        assertThat(future.isDone()).isTrue();
        assertThat(executedRunnables).containsExactly(runnable);
        assertThat(pendingRunnables).isEmpty();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

            };
        ListenableFuture<@Nullable Void> future = submit(runnable, executor);
        assertThat(future.isDone()).isFalse();
        assertThat(executedRunnables).isEmpty();
        assertThat(pendingRunnables).hasSize(1);
        pendingRunnables.remove(0).run();
        assertThat(future.isDone()).isTrue();
        assertThat(executedRunnables).containsExactly(runnable);
        assertThat(pendingRunnables).isEmpty();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  9. src/archive/tar/writer.go

    			paxHdrs[paxGNUSparseMajor] = "1"
    			paxHdrs[paxGNUSparseMinor] = "0"
    			paxHdrs[paxGNUSparseName] = realName
    			paxHdrs[paxGNUSparseRealSize] = strconv.FormatInt(realSize, 10)
    			paxHdrs[paxSize] = strconv.FormatInt(hdr.Size, 10)
    			delete(paxHdrs, paxPath) // Recorded by paxGNUSparseName
    		}
    	*/
    	_ = realSize
    
    	// Write PAX records to the output.
    	isGlobal := hdr.Typeflag == TypeXGlobalHeader
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  10. src/os/exec/exec_test.go

    		// return the error.
    		if !interruptCalled.Load() {
    			t.Errorf("Cancel was not called when the context was canceled")
    		}
    
    		// This test should kill the child process after 1ms,
    		// To maximize compatibility with existing uses of exec.CommandContext, the
    		// resulting error should be an exec.ExitError without additional wrapping.
    		if _, ok := err.(*exec.ExitError); !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
Back to top