Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for specialFindSplicePoint (0.16 sec)

  1. src/runtime/pinner.go

    }
    
    // incPinCounter is only called for multiple pins of the same object and records
    // the _additional_ pins.
    func (span *mspan) incPinCounter(offset uintptr) {
    	var rec *specialPinCounter
    	ref, exists := span.specialFindSplicePoint(offset, _KindSpecialPinCounter)
    	if !exists {
    		lock(&mheap_.speciallock)
    		rec = (*specialPinCounter)(mheap_.specialPinCounterAlloc.alloc())
    		unlock(&mheap_.speciallock)
    		// splice in record, fill in offset.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/runtime/mheap.go

    	span.ensureSwept()
    
    	offset := uintptr(p) - span.base()
    	kind := s.kind
    
    	lock(&span.speciallock)
    
    	// Find splice point, check for existing record.
    	iter, exists := span.specialFindSplicePoint(offset, kind)
    	if !exists {
    		// Splice in record, fill in offset.
    		s.offset = uint16(offset)
    		s.next = *iter
    		*iter = s
    		spanHasSpecials(span)
    	}
    
    	unlock(&span.speciallock)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
Back to top