- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 121 for Xaddint32 (0.12 sec)
-
test/fixedbugs/issue16948.go
// confuse the scheduler. package main import "sync/atomic" func main() { f() } var x int32 type T [10]int var sink *T func f() (t T) { atomic.AddInt32(&x, 1) g(42, 42, 42, 42, 42, &t) // use int values that is invalid pointer to smash the stack slot of return value of runtime.newobject return } //go:noinline func g(a, b, c, d, e int, p *T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 01 14:25:46 UTC 2016 - 703 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/authentication_info_resolver.go
} func (a *authenticationInfoResolver) ClientConfigFor(hostPort string) (*rest.Config, error) { atomic.AddInt32(a.cacheMisses, 1) return a.restConfig, nil } func (a *authenticationInfoResolver) ClientConfigForService(serviceName, serviceNamespace string, servicePort int) (*rest.Config, error) { atomic.AddInt32(a.cacheMisses, 1) return a.restConfig, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 18 18:49:55 UTC 2022 - 2.7K bytes - Viewed (0) -
src/cmd/internal/bio/buf_mmap.go
// mapping, especially since we have no way to unmap it. const threshold = 16 << 10 if length < threshold { return nil, false } // Have we reached the mmap limit? if atomic.AddInt32(&mmapLimit, -1) < 0 { atomic.AddInt32(&mmapLimit, 1) return nil, false } // Page-align the offset. off := r.Offset() align := syscall.Getpagesize() aoff := off &^ int64(align-1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:20:31 UTC 2024 - 1.6K bytes - Viewed (0) -
test/fixedbugs/issue20335.go
// without the fix in the CL that added this file. // TODO: check the generated assembly? package a import "sync/atomic" func f(p, q *int32) bool { x := *q return atomic.AddInt32(p, 1) == x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 11 22:16:08 UTC 2017 - 467 bytes - Viewed (0) -
src/runtime/testdata/testprog/preempt.go
dummy() } }() // Also start one with a frameless function. // This is an especially interesting case for // LR machines. go func() { atomic.AddUint32(&ready2, 1) frameless() }() // Also test empty infinite loop. go func() { atomic.AddUint32(&ready2, 1) for { } }() // Wait for the goroutine to stop passing through sync // safe-points.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 07 17:46:04 UTC 2021 - 1.6K bytes - Viewed (0) -
test/deferfin.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 05 21:11:31 UTC 2021 - 1.1K bytes - Viewed (0) -
src/sync/pool_test.go
const P = 10 var N int = 2e6 if testing.Short() { N = 1e3 } have := make([]int32, N) var stop int32 var wg WaitGroup record := func(val int) { atomic.AddInt32(&have[val], 1) if val == N-1 { atomic.StoreInt32(&stop, 1) } } // Start P-1 consumers. for i := 1; i < P; i++ { wg.Add(1) go func() { fail := 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8K bytes - Viewed (0) -
src/sync/waitgroup_test.go
for i := 0; i < 1000; i++ { wg := &WaitGroup{} n := new(int32) // spawn goroutine 1 wg.Add(1) go func() { atomic.AddInt32(n, 1) wg.Done() }() // spawn goroutine 2 wg.Add(1) go func() { atomic.AddInt32(n, 1) wg.Done() }() // Wait for goroutine 1 and 2 wg.Wait() if atomic.LoadInt32(n) != 2 { t.Fatal("Spurious wakeup from Wait") } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 14 17:38:39 UTC 2021 - 3K bytes - Viewed (0) -
src/cmd/link/internal/x86/asm.go
// jmp *got+8 plt.AddUint8(0xff) plt.AddUint8(0x25) plt.AddAddrPlus(ctxt.Arch, got.Sym(), 8) // zero pad plt.AddUint32(ctxt.Arch, 0) // assume got->size == 0 too got.AddAddrPlus(ctxt.Arch, dynamic, 0) got.AddUint32(ctxt.Arch, 0) got.AddUint32(ctxt.Arch, 0) } } func addpltsym(target *ld.Target, ldr *loader.Loader, syms *ld.ArchSyms, s loader.Sym) { if ldr.SymPlt(s) >= 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 23 05:58:20 UTC 2023 - 13.6K bytes - Viewed (0) -
src/cmd/link/internal/arm/asm.go
if plt.Size() == 0 { // str lr, [sp, #-4]! plt.AddUint32(ctxt.Arch, 0xe52de004) // ldr lr, [pc, #4] plt.AddUint32(ctxt.Arch, 0xe59fe004) // add lr, pc, lr plt.AddUint32(ctxt.Arch, 0xe08fe00e) // ldr pc, [lr, #8]! plt.AddUint32(ctxt.Arch, 0xe5bef008) // .word &GLOBAL_OFFSET_TABLE[0] - . plt.AddPCRelPlus(ctxt.Arch, got.Sym(), 4)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 23 05:58:20 UTC 2023 - 22.9K bytes - Viewed (0)