Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 111 for relocs (0.25 sec)

  1. src/strconv/strconv_test.go

    		Buffer: make([]byte, 1024),
    	}
    
    	checkNoAllocs := func(f func()) func(t *testing.T) {
    		return func(t *testing.T) {
    			t.Helper()
    			if allocs := testing.AllocsPerRun(runsPerTest, f); allocs != 0 {
    				t.Errorf("got %v allocs, want 0 allocs", allocs)
    			}
    		}
    	}
    
    	t.Run("Atoi", checkNoAllocs(func() {
    		Sink.Int, Sink.Error = Atoi(string(bytes.Number))
    	}))
    	t.Run("ParseBool", checkNoAllocs(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 20:29:22 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  2. pkg/kubelet/container/os.go

    	Rename(oldpath, newpath string) error
    }
    
    // RealOS is used to dispatch the real system level operations.
    type RealOS struct{}
    
    // MkdirAll will call os.MkdirAll to create a directory.
    func (RealOS) MkdirAll(path string, perm os.FileMode) error {
    	return os.MkdirAll(path, perm)
    }
    
    // Symlink will call os.Symlink to create a symbolic link.
    func (RealOS) Symlink(oldname string, newname string) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 30 03:35:26 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/driver/tagroot.go

    			leafm = true
    		}
    
    		if len(leavesToAdd)+len(rootsToAdd) == 0 {
    			continue
    		}
    
    		var newLocs []*profile.Location
    		newLocs = append(newLocs, leavesToAdd...)
    		newLocs = append(newLocs, s.Location...)
    		newLocs = append(newLocs, rootsToAdd...)
    		s.Location = newLocs
    	}
    	return
    }
    
    // formatLabelValues returns all the string and numeric labels in Sample, with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/issue53888_test.go

    			t.Errorf("got %f allocs, want 0", n)
    		}
    		type S []byte
    
    		s := make(S, n)
    		g := func() {
    			s = append(s[:0], make(S, n)...)
    		}
    		if n := testing.AllocsPerRun(10, g); n > 0 {
    			t.Errorf("got %f allocs, want 0", n)
    		}
    		h := func() {
    			s = append(s[:0], make([]byte, n)...)
    		}
    		if n := testing.AllocsPerRun(10, h); n > 0 {
    			t.Errorf("got %f allocs, want 0", n)
    		}
    		i := func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 12:18:20 UTC 2022
    - 1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/conc_alloc_test.go

    			}
    		} else if f64RelDiff(alloc, allocs[idx]) > fpSlack {
    			t.Fatalf("For requiredSum=%v, %s classes=%#+v got solution %v, %v in which item %d got alloc %v should be %v (which is proportional to its target) but is not", requiredSum, style, classes, allocs, fairProp, idx, allocs[idx], alloc)
    		}
    	}
    	t.Logf("For requiredSum=%v, %s classes=%#+v got solution %v, %v", requiredSum, style, classes, allocs, fairProp)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 07 18:17:27 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  6. pkg/cache/bench.baseline

    BenchmarkLRUGetConcurrent-8      	 1000000	      1984 ns/op	       0 B/op	       0 allocs/op
    BenchmarkLRUSet-8                	20000000	        64.7 ns/op	       0 B/op	       0 allocs/op
    BenchmarkLRUSetConcurrent-8      	 1000000	      2315 ns/op	       0 B/op	       0 allocs/op
    BenchmarkLRUGetSetConcurrent-8   	 1000000	      2299 ns/op	       0 B/op	       0 allocs/op
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  7. src/cmd/link/internal/mips/asm.go

    	}
    
    	return val, 0, false
    }
    
    func archrelocvariant(*ld.Target, *loader.Loader, loader.Reloc, sym.RelocVariant, loader.Sym, int64, []byte) int64 {
    	return -1
    }
    
    func extreloc(target *ld.Target, ldr *loader.Loader, r loader.Reloc, s loader.Sym) (loader.ExtReloc, bool) {
    	switch r.Type() {
    	case objabi.R_ADDRMIPS, objabi.R_ADDRMIPSU:
    		return ld.ExtrelocViaOuterSym(ldr, r, s), true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 05:58:20 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  8. maven-core/src/test/resources-project-builder/complete-model/w-parent/sub/pom.xml

          <name>docs</name>
        </site>
        <downloadUrl>https://project.url/download</downloadUrl>
        <relocation>
          <groupId>reloc-gid</groupId>
          <artifactId>reloc-aid</artifactId>
          <version>reloc-version</version>
          <message>project-reloc-msg</message>
        </relocation>
      </distributionManagement>
    
      <modules>
        <module>sub</module>
      </modules>
    
      <properties>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Sun Mar 29 19:02:56 UTC 2020
    - 8.8K bytes
    - Viewed (0)
  9. src/sync/oncefunc_test.go

    	calls := 0
    	f := sync.OnceFunc(func() { calls++ })
    	allocs := testing.AllocsPerRun(10, f)
    	if calls != 1 {
    		t.Errorf("want calls==1, got %d", calls)
    	}
    	if allocs != 0 {
    		t.Errorf("want 0 allocations per call, got %v", allocs)
    	}
    }
    
    func TestOnceValue(t *testing.T) {
    	calls := 0
    	f := sync.OnceValue(func() int {
    		calls++
    		return calls
    	})
    	allocs := testing.AllocsPerRun(10, func() { f() })
    	value := f()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:31:33 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  10. src/cmd/link/internal/loong64/asm.go

    	}
    
    	return val, 0, false
    }
    
    func archrelocvariant(*ld.Target, *loader.Loader, loader.Reloc, sym.RelocVariant, loader.Sym, int64, []byte) int64 {
    	return -1
    }
    
    func extreloc(target *ld.Target, ldr *loader.Loader, r loader.Reloc, s loader.Sym) (loader.ExtReloc, bool) {
    	switch r.Type() {
    	case objabi.R_LOONG64_ADDR_HI,
    		objabi.R_LOONG64_ADDR_LO,
    		objabi.R_LOONG64_GOT_HI,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 17:26:07 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top