Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NotInHeap (0.12 sec)

  1. src/runtime/malloc.go

    type notInHeap struct{ _ sys.NotInHeap }
    
    func (p *notInHeap) add(bytes uintptr) *notInHeap {
    	return (*notInHeap)(unsafe.Pointer(uintptr(unsafe.Pointer(p)) + bytes))
    }
    
    // computeRZlog computes the size of the redzone.
    // Refer to the implementation of the compiler-rt.
    func computeRZlog(userSize uintptr) uintptr {
    	switch {
    	case userSize <= (64 - 16):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  2. src/runtime/mheap.go

    	return mSpanState(b.s.Load())
    }
    
    // mSpanList heads a linked list of spans.
    type mSpanList struct {
    	_     sys.NotInHeap
    	first *mspan // first span in list, or nil if none
    	last  *mspan // last span in list, or nil if none
    }
    
    type mspan struct {
    	_    sys.NotInHeap
    	next *mspan     // next span in list, or nil if none
    	prev *mspan     // previous span in list, or nil if none
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  3. src/runtime/mprof.go

    //
    // None of the fields in this bucket header are modified after
    // creation, including its next and allnext links.
    //
    // No heap pointers.
    type bucket struct {
    	_       sys.NotInHeap
    	next    *bucket
    	allnext *bucket
    	typ     bucketType // memBucket or blockBucket (includes mutexProfile)
    	hash    uintptr
    	size    uintptr
    	nstk    uintptr
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  4. src/runtime/mbitmap.go

    //
    //go:nosplit
    func heapBitsSlice(spanBase, spanSize uintptr) []uintptr {
    	bitmapSize := spanSize / goarch.PtrSize / 8
    	elems := int(bitmapSize / goarch.PtrSize)
    	var sl notInHeapSlice
    	sl = notInHeapSlice{(*notInHeap)(unsafe.Pointer(spanBase + spanSize - bitmapSize)), elems, elems}
    	return *(*[]uintptr)(unsafe.Pointer(&sl))
    }
    
    // heapBitsSmallForAddr loads the heap bits for the object stored at addr from span.heapBits.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
Back to top