Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 435 for uintptr1 (0.2 sec)

  1. src/runtime/runtime2.go

    	return atomic.Casuintptr((*uintptr)(unsafe.Pointer(gp)), uintptr(old), uintptr(new))
    }
    
    //go:nosplit
    func (gp *g) guintptr() guintptr {
    	return guintptr(unsafe.Pointer(gp))
    }
    
    // setGNoWB performs *gp = new without a write barrier.
    // For times when it's impractical to use a guintptr.
    //
    //go:nosplit
    //go:nowritebarrier
    func setGNoWB(gp **g, new *g) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 47.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/inl_test.go

    			"(*Uint32).Swap",
    			"(*Uint64).Add",
    			"(*Uint64).CompareAndSwap",
    			"(*Uint64).Load",
    			"(*Uint64).Store",
    			"(*Uint64).Swap",
    			"(*Uintptr).Add",
    			"(*Uintptr).CompareAndSwap",
    			"(*Uintptr).Load",
    			"(*Uintptr).Store",
    			"(*Uintptr).Swap",
    			"(*Pointer[go.shape.int]).CompareAndSwap",
    			"(*Pointer[go.shape.int]).Load",
    			"(*Pointer[go.shape.int]).Store",
    			"(*Pointer[go.shape.int]).Swap",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. src/runtime/traceback.go

    // pointer to a struct:
    //
    //	struct {
    //		Context    uintptr
    //		SigContext uintptr
    //		Buf        *uintptr
    //		Max        uintptr
    //	}
    //
    // In C syntax, this struct will be
    //
    //	struct {
    //		uintptr_t  Context;
    //		uintptr_t  SigContext;
    //		uintptr_t* Buf;
    //		uintptr_t  Max;
    //	};
    //
    // The Context field will be zero to gather a traceback from the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  4. src/runtime/lock_sema.go

    			// Someone else has it.
    			// l->waitm points to a linked list of M's waiting
    			// for this lock, chained through m->nextwaitm.
    			// Queue this M.
    			for {
    				gp.m.nextwaitm = muintptr(v &^ locked)
    				if atomic.Casuintptr(&l.key, v, uintptr(unsafe.Pointer(gp.m))|locked) {
    					break
    				}
    				v = atomic.Loaduintptr(&l.key)
    				if v&locked == 0 {
    					continue Loop
    				}
    			}
    			if v&locked != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/config.go

    	t.UInt = types.Types[types.TUINT]
    	t.Uintptr = types.Types[types.TUINTPTR]
    	t.String = types.Types[types.TSTRING]
    	t.BytePtr = types.NewPtr(types.Types[types.TUINT8])
    	t.Int32Ptr = types.NewPtr(types.Types[types.TINT32])
    	t.UInt32Ptr = types.NewPtr(types.Types[types.TUINT32])
    	t.IntPtr = types.NewPtr(types.Types[types.TINT])
    	t.UintptrPtr = types.NewPtr(types.Types[types.TUINTPTR])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  6. src/runtime/cgo/gcc_libinit.c

    }
    
    // _cgo_set_stacklo sets g->stacklo based on the stack size.
    // This is common code called from x_cgo_init, which is itself
    // called by rt0_go in the runtime package.
    void _cgo_set_stacklo(G *g, uintptr *pbounds)
    {
    	uintptr bounds[2];
    
    	// pbounds can be passed in by the caller; see gcc_linux_amd64.c.
    	if (pbounds == NULL) {
    		pbounds = &bounds[0];
    	}
    
    	x_cgo_getstackbound(pbounds);
    
    	g->stacklo = *pbounds;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 01:07:18 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. src/unsafe/unsafe.go

    //	}
    //
    // (2) Conversion of a Pointer to a uintptr (but not back to Pointer).
    //
    // Converting a Pointer to a uintptr produces the memory address of the value
    // pointed at, as an integer. The usual use for such a uintptr is to print it.
    //
    // Conversion of a uintptr back to Pointer is not valid in general.
    //
    // A uintptr is an integer, not a reference.
    // Converting a Pointer to a uintptr creates an integer value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:45:20 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/builtin.go

    		// with same elem.Width for the from slice.
    		size := ir.NewBinaryExpr(base.Pos, ir.OMUL, typecheck.Conv(length, types.Types[types.TUINTPTR]), typecheck.Conv(ir.NewInt(base.Pos, t.Elem().Size()), types.Types[types.TUINTPTR]))
    
    		// instantiate mallocgc(size uintptr, typ *byte, needszero bool) unsafe.Pointer
    		fn := typecheck.LookupRuntime("mallocgc")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  9. src/runtime/export_test.go

    // Expose pageAlloc for testing. Note that because pageAlloc is
    // not in the heap, so is PageAlloc.
    type PageAlloc pageAlloc
    
    func (p *PageAlloc) Alloc(npages uintptr) (uintptr, uintptr) {
    	pp := (*pageAlloc)(p)
    
    	var addr, scav uintptr
    	systemstack(func() {
    		// None of the tests need any higher-level locking, so we just
    		// take the lock internally.
    		lock(pp.mheapLock)
    		addr, scav = pp.alloc(npages)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  10. src/runtime/profbuf.go

    	// wraparound we might need to stop early and return the rest
    	// in the next call.
    	di := 0
    	ti := 0
    	for di < len(data) && data[di] != 0 && ti < len(tags) {
    		if uintptr(di)+uintptr(data[di]) > uintptr(len(data)) {
    			throw("runtime: malformed profBuf buffer - invalid size")
    		}
    		di += int(data[di])
    		ti++
    	}
    
    	// Remember how much we returned, to commit read on next call.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 18.2K bytes
    - Viewed (0)
Back to top