Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for NotInHeap (0.34 sec)

  1. src/runtime/slice.go

    	"runtime/internal/sys"
    	"unsafe"
    )
    
    type slice struct {
    	array unsafe.Pointer
    	len   int
    	cap   int
    }
    
    // A notInHeapSlice is a slice backed by runtime/internal/sys.NotInHeap memory.
    type notInHeapSlice struct {
    	array *notInHeap
    	len   int
    	cap   int
    }
    
    func panicmakeslicelen() {
    	panic(errorString("makeslice: len out of range"))
    }
    
    func panicmakeslicecap() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. src/runtime/netpoll.go

    const (
    	pdNil   uintptr = 0
    	pdReady uintptr = 1
    	pdWait  uintptr = 2
    )
    
    const pollBlockSize = 4 * 1024
    
    // Network poller descriptor.
    //
    // No heap pointers.
    type pollDesc struct {
    	_     sys.NotInHeap
    	link  *pollDesc      // in pollcache, protected by pollcache.lock
    	fd    uintptr        // constant for pollDesc usage lifetime
    	fdseq atomic.Uintptr // protects against stale pollDesc
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  3. src/runtime/mfinal.go

    // must be specially handled. GC currently assumes that the finalizer
    // queue does not grow during marking (but it can shrink).
    type finblock struct {
    	_       sys.NotInHeap
    	alllink *finblock
    	next    *finblock
    	cnt     uint32
    	_       int32
    	fin     [(_FinBlockSize - 2*goarch.PtrSize - 2*4) / unsafe.Sizeof(finalizer{})]finalizer
    }
    
    var fingStatus atomic.Uint32
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/assign.go

    		r := recv.X // the channel
    		return mkcall1(chanfn("chanrecv1", 2, r.Type()), nil, init, r, n1)
    
    	case ir.OAPPEND:
    		// x = append(...)
    		call := as.Y.(*ir.CallExpr)
    		if call.Type().Elem().NotInHeap() {
    			base.Errorf("%v can't be allocated in Go; it is incomplete (or unallocatable)", call.Type().Elem())
    		}
    		var r ir.Node
    		switch {
    		case isAppendOfMake(call):
    			// x = append(y, make([]T, y)...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. src/runtime/stack.go

    var stackpool [_NumStackOrders]struct {
    	item stackpoolItem
    	_    [(cpu.CacheLinePadSize - unsafe.Sizeof(stackpoolItem{})%cpu.CacheLinePadSize) % cpu.CacheLinePadSize]byte
    }
    
    type stackpoolItem struct {
    	_    sys.NotInHeap
    	mu   mutex
    	span mSpanList
    }
    
    // Global pool of large stack spans.
    var stackLarge struct {
    	lock mutex
    	free [heapAddrBits - pageShift]mSpanList // free lists by log_2(s.npages)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  6. src/runtime/symtab.go

    // moduledata is stored in statically allocated non-pointer memory;
    // none of the pointers here are visible to the garbage collector.
    type moduledata struct {
    	sys.NotInHeap // Only in static data
    
    	pcHeader     *pcHeader
    	funcnametab  []byte
    	cutab        []uint32
    	filetab      []byte
    	pctab        []byte
    	pclntable    []byte
    	ftab         []functab
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 40K bytes
    - Viewed (0)
  7. src/runtime/runtime2.go

    // See https://golang.org/s/go12symtab.
    // Keep in sync with linker (../cmd/link/internal/ld/pcln.go:/pclntab)
    // and with package debug/gosym and with symtab.go in package runtime.
    type _func struct {
    	sys.NotInHeap // Only in static data
    
    	entryOff uint32 // start pc, as offset from moduledata.text/pcHeader.textStart
    	nameOff  int32  // function name, as index into moduledata.funcnametab.
    
    	args        int32  // in/out args size
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
Back to top