- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 48 for relocs (0.21 sec)
-
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) -
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) -
platforms/documentation/docs/src/docs/userguide/img/intellij-script-dependencies-reload.png
intellij-script-dependencies-reload.png...
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 6.2K bytes - Viewed (0) -
src/cmd/compile/internal/base/base.go
const ( goal = "/gc/heap/goal:bytes" count = "/gc/cycles/total:gc-cycles" allocs = "/gc/heap/allocs:bytes" frees = "/gc/heap/frees:bytes" ) sample := []metrics.Sample{{Name: goal}, {Name: count}, {Name: allocs}, {Name: frees}} const ( GOAL = 0 COUNT = 1 ALLOCS = 2 FREES = 3 ) // Assumptions and observations of Go's garbage collector, as of Go 1.17-1.20:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 19:18:34 UTC 2023 - 8K bytes - Viewed (0) -
src/sync/map_test.go
} func TestMapRangeNoAllocations(t *testing.T) { // Issue 62404 testenv.SkipIfOptimizationOff(t) var m sync.Map allocs := testing.AllocsPerRun(10, func() { m.Range(func(key, value any) bool { return true }) }) if allocs > 0 { t.Errorf("AllocsPerRun of m.Range = %v; want 0", allocs) } } // TestConcurrentClear tests concurrent behavior of sync.Map properties to ensure no data races.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 01 15:34:22 UTC 2024 - 8.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/cache_test.go
var wg sync.WaitGroup for i := 0; i < 100; i++ { wg.Add(1) go func() { f() wg.Done() }() } wg.Wait() allocs := testing.AllocsPerRun(100, f) if allocs > 1 { t.Errorf("Expected 1 allocations, got %v", allocs) } }) } func TestSimpleCache(t *testing.T) { fakeClock := testingclock.NewFakeClock(time.Now())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 31 20:26:58 UTC 2023 - 4.9K bytes - Viewed (0) -
src/cmd/link/internal/riscv64/obj.go
Linuxdynld: "/lib/ld.so.1", Freebsddynld: "/usr/libexec/ld-elf.so.1", Netbsddynld: "XXX", Openbsddynld: "/usr/libexec/ld.so", Dragonflydynld: "XXX", Solarisdynld: "XXX", Reloc1: elfreloc1, RelocSize: 24, SetupPLT: elfsetupplt, }, } return arch, theArch } func archinit(ctxt *ld.Link) { switch ctxt.HeadType {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 03 17:46:04 UTC 2023 - 1.6K bytes - Viewed (0) -
src/cmd/link/internal/loong64/obj.go
LinuxdynldMusl: "/lib/ld-musl-loongarch64.so.1", Freebsddynld: "XXX", Openbsddynld: "XXX", Netbsddynld: "XXX", Dragonflydynld: "XXX", Solarisdynld: "XXX", Reloc1: elfreloc1, RelocSize: 24, SetupPLT: elfsetupplt, }, } return arch, theArch } func archinit(ctxt *ld.Link) { switch ctxt.HeadType { default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 05 13:49:14 UTC 2024 - 1.5K bytes - Viewed (0) -
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) -
src/cmd/link/internal/ppc64/obj.go
Linuxdynld: dynld, LinuxdynldMusl: musl, Freebsddynld: "XXX", Openbsddynld: "/usr/libexec/ld.so", Netbsddynld: "XXX", Dragonflydynld: "XXX", Solarisdynld: "XXX", Reloc1: elfreloc1, RelocSize: 24, SetupPLT: elfsetupplt, }, } return arch, theArch } func archinit(ctxt *ld.Link) { switch ctxt.HeadType { default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 13 19:32:19 UTC 2023 - 3.4K bytes - Viewed (0)