Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for Loaduintptr (0.24 sec)

  1. src/runtime/lock_sema.go

    const (
    	locked uintptr = 1
    
    	active_spin     = 4
    	active_spin_cnt = 30
    	passive_spin    = 1
    )
    
    func mutexContended(l *mutex) bool {
    	return atomic.Loaduintptr(&l.key) > locked
    }
    
    func lock(l *mutex) {
    	lockWithRank(l, getLockRank(l))
    }
    
    func lock2(l *mutex) {
    	gp := getg()
    	if gp.m.locks < 0 {
    		throw("runtime·lock: lock count")
    	}
    	gp.m.locks++
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. src/runtime/vdso_freebsd_x86.go

    //go:nosplit
    func (th *vdsoTimehands) getHPETTimecounter() (uint32, bool) {
    	idx := int(th.x86_hpet_idx)
    	if idx >= len(hpetDevMap) {
    		return 0, false
    	}
    
    	p := atomic.Loaduintptr(&hpetDevMap[idx])
    	if p == 0 {
    		systemstack(func() { initHPETTimecounter(idx) })
    		p = atomic.Loaduintptr(&hpetDevMap[idx])
    	}
    	if p == ^uintptr(0) {
    		return 0, false
    	}
    	return *(*uint32)(unsafe.Pointer(p + _HPET_MAIN_COUNTER)), true
    }
    
    //go:systemstack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. src/internal/runtime/atomic/stubs.go

    //go:noescape
    func Storeint32(ptr *int32, new int32)
    
    //go:noescape
    func Storeint64(ptr *int64, new int64)
    
    //go:noescape
    func Storeuintptr(ptr *uintptr, new uintptr)
    
    //go:noescape
    func Loaduintptr(ptr *uintptr) uintptr
    
    //go:noescape
    func Loaduint(ptr *uint) uint
    
    // TODO(matloob): Should these functions have the go:noescape annotation?
    
    //go:noescape
    func Loadint32(ptr *int32) int32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  4. src/internal/runtime/atomic/atomic_wasm.go

    // Export some functions via linkname to assembly in sync/atomic.
    //
    //go:linkname Load
    //go:linkname Loadp
    //go:linkname Load64
    //go:linkname Loadint32
    //go:linkname Loadint64
    //go:linkname Loaduintptr
    //go:linkname LoadAcquintptr
    //go:linkname Xadd
    //go:linkname Xaddint32
    //go:linkname Xaddint64
    //go:linkname Xadd64
    //go:linkname Xadduintptr
    //go:linkname Xchg
    //go:linkname Xchg64
    //go:linkname Xchgint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. src/internal/runtime/atomic/atomic_s390x.s

    TEXT ·Casuintptr(SB), NOSPLIT, $0-25
    	BR	·Cas64(SB)
    
    // func CasRel(ptr *uint32, old, new uint32) bool
    TEXT ·CasRel(SB), NOSPLIT, $0-17
    	BR	·Cas(SB)
    
    // func Loaduintptr(ptr *uintptr) uintptr
    TEXT ·Loaduintptr(SB), NOSPLIT, $0-16
    	BR	·Load64(SB)
    
    // func Loaduint(ptr *uint) uint
    TEXT ·Loaduint(SB), NOSPLIT, $0-16
    	BR	·Load64(SB)
    
    // func Storeint32(ptr *int32, new int32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  6. src/sync/atomic/asm.s

    	JMP	internal∕runtime∕atomic·Load(SB)
    
    TEXT ·LoadInt64(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Load64(SB)
    
    TEXT ·LoadUint64(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Load64(SB)
    
    TEXT ·LoadUintptr(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Loaduintptr(SB)
    
    TEXT ·LoadPointer(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Loadp(SB)
    
    TEXT ·StoreInt32(SB),NOSPLIT,$0
    	JMP	internal∕runtime∕atomic·Store(SB)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. src/internal/runtime/atomic/atomic_riscv64.s

    TEXT ·CasRel(SB), NOSPLIT, $0-17
    	JMP	·Cas(SB)
    
    TEXT ·Loaduintptr(SB),NOSPLIT,$0-16
    	JMP	·Load64(SB)
    
    TEXT ·Storeint32(SB),NOSPLIT,$0-12
    	JMP	·Store(SB)
    
    TEXT ·Storeint64(SB),NOSPLIT,$0-16
    	JMP	·Store64(SB)
    
    TEXT ·Storeuintptr(SB),NOSPLIT,$0-16
    	JMP	·Store64(SB)
    
    TEXT ·Loaduint(SB),NOSPLIT,$0-16
    	JMP ·Loaduintptr(SB)
    
    TEXT ·Loadint32(SB),NOSPLIT,$0-12
    	JMP ·Load(SB)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. src/runtime/debuglog.go

    	l := getCachedDlogger()
    
    	// If we couldn't get a cached logger, try to get one from the
    	// global pool.
    	if l == nil {
    		allp := (*uintptr)(unsafe.Pointer(&allDloggers))
    		all := (*dlogger)(unsafe.Pointer(atomic.Loaduintptr(allp)))
    		for l1 := all; l1 != nil; l1 = l1.allLink {
    			if l1.owned.Load() == 0 && l1.owned.CompareAndSwap(0, 1) {
    				l = l1
    				break
    			}
    		}
    	}
    
    	// If that failed, allocate a new logger.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  9. src/internal/runtime/atomic/atomic_amd64.s

    // license that can be found in the LICENSE file.
    
    // Note: some of these functions are semantically inlined
    // by the compiler (in src/cmd/compile/internal/gc/ssa.go).
    
    #include "textflag.h"
    
    TEXT ·Loaduintptr(SB), NOSPLIT, $0-16
    	JMP	·Load64(SB)
    
    TEXT ·Loaduint(SB), NOSPLIT, $0-16
    	JMP	·Load64(SB)
    
    TEXT ·Loadint32(SB), NOSPLIT, $0-12
    	JMP	·Load(SB)
    
    TEXT ·Loadint64(SB), NOSPLIT, $0-16
    	JMP	·Load64(SB)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. src/sync/atomic/doc.go

    // (particularly if you target 32-bit platforms; see the bugs section).
    func LoadUint64(addr *uint64) (val uint64)
    
    // LoadUintptr atomically loads *addr.
    // Consider using the more ergonomic and less error-prone [Uintptr.Load] instead.
    func LoadUintptr(addr *uintptr) (val uintptr)
    
    // LoadPointer atomically loads *addr.
    // Consider using the more ergonomic and less error-prone [Pointer.Load] instead.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top