Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for NotInHeap (0.27 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/cmd/compile/internal/types/type.go

    // Yes, if the representation is a single pointer.
    func IsDirectIface(t *Type) bool {
    	switch t.Kind() {
    	case TPTR:
    		// Pointers to notinheap types must be stored indirectly. See issue 42076.
    		return !t.Elem().NotInHeap()
    	case TCHAN,
    		TMAP,
    		TFUNC,
    		TUNSAFEPTR:
    		return true
    
    	case TARRAY:
    		// Array of 1 direct iface type can be direct.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/cmd/internal/testdir/testdir_test.go

    	"fixedbugs/issue20245.go", // types2 reports two instead of one error (preference: 1.17 compiler)
    	"fixedbugs/issue31053.go", // types2 reports "unknown field" instead of "cannot refer to unexported field"
    	"fixedbugs/notinheap.go",  // types2 doesn't report errors about conversions that are invalid due to //go:notinheap
    )
    
    var types2Failures32Bit = setOf(
    	"printbig.go",             // large untyped int passed to print (32-bit)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  6. 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