- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 60 for addUint32 (0.32 sec)
-
test/intrinsic_atomic.go
func atomics() { _ = atomic.LoadUint32(&x) // ERROR "intrinsic substitution for LoadUint32" atomic.StoreUint32(&x, 1) // ERROR "intrinsic substitution for StoreUint32" atomic.AddUint32(&x, 1) // ERROR "intrinsic substitution for AddUint32" atomic.SwapUint32(&x, 1) // ERROR "intrinsic substitution for SwapUint32" atomic.CompareAndSwapUint32(&x, 1, 2) // ERROR "intrinsic substitution for CompareAndSwapUint32"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 839 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/fixedbugs/issue16985.go
// issue 16985: intrinsified AMD64 atomic ops should clobber flags package main import "sync/atomic" var count uint32 func main() { buffer := []byte("T") for i := 0; i < len(buffer); { atomic.AddUint32(&count, 1) _ = buffer[i] i++ i++ } for i := 0; i < len(buffer); { atomic.CompareAndSwapUint32(&count, 0, 1) _ = buffer[i] i++ i++ } for i := 0; i < len(buffer); {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 14:26:18 UTC 2016 - 625 bytes - Viewed (0) -
src/runtime/race/race_unix_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 15:36:26 UTC 2022 - 762 bytes - Viewed (0) -
src/sync/atomic/asm.s
TEXT ·CompareAndSwapInt64(SB),NOSPLIT,$0 JMP internal∕runtime∕atomic·Cas64(SB) TEXT ·CompareAndSwapUint64(SB),NOSPLIT,$0 JMP internal∕runtime∕atomic·Cas64(SB) TEXT ·AddInt32(SB),NOSPLIT,$0 JMP internal∕runtime∕atomic·Xadd(SB) TEXT ·AddUint32(SB),NOSPLIT,$0 JMP internal∕runtime∕atomic·Xadd(SB) TEXT ·AddUintptr(SB),NOSPLIT,$0 JMP internal∕runtime∕atomic·Xadduintptr(SB) TEXT ·AddInt64(SB),NOSPLIT,$0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:37:29 UTC 2024 - 3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/atomic/atomic.go
for i, right := range n.Rhs { call, ok := right.(*ast.CallExpr) if !ok { continue } fn := typeutil.StaticCallee(pass.TypesInfo, call) if analysisutil.IsFunctionNamed(fn, "sync/atomic", "AddInt32", "AddInt64", "AddUint32", "AddUint64", "AddUintptr") { checkAtomicAddAssignment(pass, n.Lhs[i], call) } } }) return nil, nil } // checkAtomicAddAssignment walks the atomic.Add* method calls checking
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 2.3K bytes - Viewed (0) -
src/runtime/race/race_linux_test.go
} // This should not fault. a := (*uint32)(unsafe.Pointer(&b[pagesize-4])) atomic.StoreUint32(a, 1) if x := atomic.LoadUint32(a); x != 1 { t.Fatalf("bad atomic value: %v, want 1", x) } if x := atomic.AddUint32(a, 1); x != 2 { t.Fatalf("bad atomic value: %v, want 2", x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 16 14:09:02 UTC 2023 - 1.9K bytes - Viewed (0) -
src/net/dnsconfig.go
// indices of servers in c.servers when making queries. // When the rotate option is enabled, this offset increases. // Otherwise it is always 0. func (c *dnsConfig) serverOffset() uint32 { if c.rotate { return atomic.AddUint32(&c.soffset, 1) - 1 // return 0 to start } return 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 2.2K bytes - Viewed (0) -
pkg/util/iptables/monitor_test.go
tables := []Table{TableMangle, TableFilter, TableNAT} go ipt.Monitor(canary, tables, func() { if !ensureNoChains(mfe) { t.Errorf("reload called while canaries still exist") } atomic.AddUint32(&reloads, 1) }, 100*time.Millisecond, stopCh) // Monitor should create canary chains quickly if err := waitForChains(mfe, canary, tables); err != nil { t.Errorf("failed to create iptables canaries: %v", err)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 08 15:21:59 UTC 2023 - 9.3K bytes - Viewed (0) -
src/net/http/pprof/pprof_test.go
t.Errorf("response: got %q; want %q", body, tc.resp) } }) } } var Sink uint32 func mutexHog1(mu1, mu2 *sync.Mutex, start time.Time, dt time.Duration) { atomic.AddUint32(&Sink, 1) for time.Since(start) < dt { // When using gccgo the loop of mutex operations is // not preemptible. This can cause the loop to block a GC, // causing the time limits in TestDeltaContentionz to fail.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 07 19:52:28 UTC 2023 - 9.7K bytes - Viewed (0)