Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,133 for allocm (0.22 sec)

  1. src/cmd/go/alldocs.go

    // default, and a program named go_$GOOS_$GOARCH_exec can be found
    // on the current search path, 'go run' invokes the binary using that program,
    // for example 'go_js_wasm_exec a.out arguments...'. This allows execution of
    // cross-compiled programs when a simulator or other execution method is
    // available.
    //
    // By default, 'go run' compiles the binary without generating the information
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  2. src/internal/diff/testdata/allold.txt

    Russ Cox <******@****.***> 1643490792 -0500
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 18 16:56:29 UTC 2022
    - 91 bytes
    - Viewed (0)
  3. src/runtime/mpagecache.go

    		return c.base + i*pageSize, uintptr(scav) * pageSize
    	}
    	return c.allocN(npages)
    }
    
    // allocN is a helper which attempts to allocate npages worth of pages
    // from the cache. It represents the general case for allocating from
    // the page cache.
    //
    // Returns a base address and the amount of scavenged memory in the
    // allocated region in bytes.
    func (c *pageCache) allocN(npages uintptr) (uintptr, uintptr) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 14:30:00 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. src/runtime/metrics_test.go

    		t.Error("allocs-by-size and frees-by-size counts don't match in length")
    	} else {
    		for i := range objects.alloc.Buckets {
    			ba := objects.alloc.Buckets[i]
    			bf := objects.free.Buckets[i]
    			if ba != bf {
    				t.Errorf("bucket %d is different for alloc and free hists: %f != %f", i, ba, bf)
    			}
    		}
    		if !t.Failed() {
    			var gotAlloc, gotFree uint64
    			want := objects.total
    			for i := range objects.alloc.Counts {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  5. src/encoding/gob/timing_test.go

    		if err != nil {
    			t.Fatal("encode:", err)
    		}
    	})
    
    	dec := NewDecoder(&buf)
    	allocs := testing.AllocsPerRun(N, func() {
    		*bench = Bench{}
    		err := dec.Decode(&bench)
    		if err != nil {
    			t.Fatal("decode:", err)
    		}
    	})
    	if allocs != 3 {
    		t.Fatalf("mallocs per decode of type Bench: %v; wanted 3\n", allocs)
    	}
    }
    
    func benchmarkEncodeSlice(b *testing.B, a any) {
    	b.ResetTimer()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 04 07:16:59 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  6. src/runtime/mklockrank.go

      reflectOffs,
      timer,
      traceStrings,
      userArenaState
    # Above MALLOC are things that can allocate memory.
    < MALLOC
    # Below MALLOC is the malloc implementation.
    < fin,
      spanSetSpine,
      mspanSpecial,
      traceTypeTab,
      MPROF;
    
    # We can acquire gcBitsArenas for pinner bits, and
    # it's guarded by mspanSpecial.
    MALLOC, mspanSpecial < gcBitsArenas;
    
    # Memory profiling
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. src/path/path_test.go

    	if testing.Short() {
    		t.Skip("skipping malloc count in short mode")
    	}
    	if runtime.GOMAXPROCS(0) > 1 {
    		t.Log("skipping AllocsPerRun checks; GOMAXPROCS>1")
    		return
    	}
    
    	for _, test := range cleantests {
    		allocs := testing.AllocsPerRun(100, func() { Clean(test.result) })
    		if allocs > 0 {
    			t.Errorf("Clean(%q): %v allocs, want zero", test.result, allocs)
    		}
    	}
    }
    
    type SplitTest struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 13 01:12:09 UTC 2020
    - 4.6K bytes
    - Viewed (0)
  8. src/strings/builder_test.go

    		}
    	})
    }
    
    func TestBuilderGrowSizeclasses(t *testing.T) {
    	s := Repeat("a", 19)
    	allocs := testing.AllocsPerRun(100, func() {
    		var b Builder
    		b.Grow(18)
    		b.WriteString(s)
    		_ = b.String()
    	})
    	if allocs > 1 {
    		t.Fatalf("unexpected amount of allocations: %v, want: 1", allocs)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 19:51:15 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. pilot/pkg/serviceregistry/kube/controller/ambient/testdata/allow-groups.yaml

    John Howard <******@****.***> 1709232034 -0800
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 18:40:34 UTC 2024
    - 345 bytes
    - Viewed (0)
  10. src/runtime/testdata/testprog/gc.go

    	// Alternate between whether the chunk will be held live or will be
    	// condemned to GC to create holes in the heap.
    	saved := make([][]byte, allocs/2+1)
    	condemned := make([][]byte, allocs/2)
    	for i := 0; i < allocs; i++ {
    		b := make([]byte, allocChunk)
    		if i%2 == 0 {
    			saved = append(saved, b)
    		} else {
    			condemned = append(condemned, b)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 12.1K bytes
    - Viewed (0)
Back to top