Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setMarkedNonAtomic (0.34 sec)

  1. src/runtime/mbitmap.go

    	// We used to be clever here and use a non-atomic update in certain
    	// cases, but it's not worth the risk.
    	atomic.Or8(m.bytep, m.mask)
    }
    
    // setMarkedNonAtomic sets the marked bit in the markbits, non-atomically.
    func (m markBits) setMarkedNonAtomic() {
    	*m.bytep |= m.mask
    }
    
    // clearMarked clears the marked bit in the markbits, atomically.
    func (m markBits) clearMarked() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  2. src/runtime/mgcsweep.go

    			for tmp := siter.s; tmp != nil && uintptr(tmp.offset) < endOffset; tmp = tmp.next {
    				if tmp.kind == _KindSpecialFinalizer {
    					// Stop freeing of object if it has a finalizer.
    					mbits.setMarkedNonAtomic()
    					hasFinAndRevived = true
    					break
    				}
    			}
    			if hasFinAndRevived {
    				// Pass 2: queue all finalizers and clear any weak handles. Weak handles are cleared
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:52:18 UTC 2024
    - 32.9K bytes
    - Viewed (0)
Back to top