Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 49 of 49 for NotInHeap (0.16 sec)

  1. src/cmd/compile/internal/typecheck/typecheck.go

    				checklvalue(n.X, "call pointer method on")
    				addr := NodAddr(n.X)
    				addr.SetImplicit(true)
    				n.X = typecheck(addr, ctxType|ctxExpr)
    			} else if tt.IsPtr() && (!rcvr.IsPtr() || rcvr.IsPtr() && rcvr.Elem().NotInHeap()) && types.Identical(tt.Elem(), rcvr) {
    				star := ir.NewStarExpr(base.Pos, n.X)
    				star.SetImplicit(true)
    				n.X = typecheck(star, ctxType|ctxExpr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/reflect/value.go

    				// forbidden! That makes the test pretty easy.
    				// See issue 48399.
    				if !verifyNotInHeapPtr(*(*uintptr)(ptr)) {
    					panic("reflect: reflect.Value.Elem on an invalid notinheap pointer")
    				}
    			}
    			ptr = *(*unsafe.Pointer)(ptr)
    		}
    		// The returned value's address is v's value.
    		if ptr == nil {
    			return Value{}
    		}
    		tt := (*ptrType)(unsafe.Pointer(v.typ()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/compile/internal/ssagen/ssa.go

    	switch {
    	case t.IsBoolean() || t.IsInteger() || t.IsFloat() || t.IsComplex():
    		s.store(t, left, right)
    	case t.IsPtrShaped():
    		if t.IsPtr() && t.Elem().NotInHeap() {
    			s.store(t, left, right) // see issue 42032
    		}
    		// otherwise, no scalar fields.
    	case t.IsString():
    		if skip&skipLen != 0 {
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
Back to top