Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for StorepNoWB (0.14 sec)

  1. src/internal/runtime/atomic/types.go

    // It is safe to use with values not found in the Go heap.
    // Prefer Store instead.
    //
    //go:nosplit
    func (u *UnsafePointer) StoreNoWB(value unsafe.Pointer) {
    	StorepNoWB(unsafe.Pointer(&u.value), value)
    }
    
    // Store updates the value atomically.
    func (u *UnsafePointer) Store(value unsafe.Pointer) {
    	storePointer(&u.value, value)
    }
    
    // provided by runtime
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  2. src/runtime/iface.go

    		}
    		if m2 == nil {
    			// Use atomic write here so if a reader sees m, it also
    			// sees the correctly initialized fields of m.
    			// NoWB is ok because m is not in heap memory.
    			// *p = m
    			atomic.StorepNoWB(unsafe.Pointer(p), unsafe.Pointer(m))
    			t.count++
    			return
    		}
    		h += i
    		h &= mask
    	}
    }
    
    // itabInit fills in the m.Fun array with all the code pointers for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
Back to top