Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 2,845 for pointerT (1.67 sec)

  1. src/internal/types/testdata/fixedbugs/issue47747.go

            // and pointers to type parameters don't have methods
            (&x).m /* ERROR "type *P is pointer to type parameter, not type parameter" */ ()
    }
    
    
    type T2 interface{ m() }
    
    func _(x *T2) {
            // x.m doesn't exists because x is of type *T2
            // and pointers to interfaces don't have methods
            x.m /* ERROR "type *T2 is pointer to interface, not interface" */()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/unsafe_test.go

    	// Make x a uintptr pointing to where a points.
    	var x uintptr
    	if always {
    		x = uintptr(unsafe.Pointer(a))
    	} else {
    		x = 0
    	}
    	// Clobber the global pointer. The only live ref
    	// to the allocated object is now x.
    	a = nil
    
    	// Convert to pointer so it should hold
    	// the object live across GC call.
    	p := unsafe.Pointer(x)
    
    	// Call gc.
    	runtime.GC()
    
    	// Convert back to uintptr.
    	y := uintptr(p)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 3K bytes
    - Viewed (2)
  3. src/cmd/compile/internal/ssa/writebarrier.go

    					// about, but through an aliased but offset pointer.
    					// So we have to throw all the zero information we have away.
    					continue
    				}
    				// Round to cover any partially written pointer slots.
    				// Pointer writes should never be unaligned like this, but non-pointer
    				// writes to pointer-containing types will do this.
    				if d := off % ptrSize; d != 0 {
    					off -= d
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 23.5K bytes
    - Viewed (0)
  4. src/runtime/lfstack.go

    			break
    		}
    	}
    }
    
    func (head *lfstack) pop() unsafe.Pointer {
    	for {
    		old := atomic.Load64((*uint64)(head))
    		if old == 0 {
    			return nil
    		}
    		node := lfstackUnpack(old)
    		next := atomic.Load64(&node.next)
    		if atomic.Cas64((*uint64)(head), old, next) {
    			return unsafe.Pointer(node)
    		}
    	}
    }
    
    func (head *lfstack) empty() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2K bytes
    - Viewed (0)
  5. src/runtime/rt0_linux_ppc64le.s

    	// argv as argc string pointers followed by a NULL, envv as a
    	// sequence of string pointers followed by a NULL, and auxv.
    	// The TLS pointer should be initialized to 0.
    	//
    	// In an ELFv2 compliant dynamically linked binary, R3 contains argc,
    	// R4 contains argv, R5 contains envp, R6 contains auxv, and R13
    	// contains the TLS pointer.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. src/reflect/makefunc.go

    		// was there before, we might enqueue garbage.
    		if ctxt.regPtrs.Get(i) {
    			*(*uintptr)(unsafe.Pointer(&args.Ptrs[i])) = arg
    		} else {
    			// We *must* zero this space ourselves because it's defined in
    			// assembly code and the GC will scan these pointers. Otherwise,
    			// there will be garbage here.
    			*(*uintptr)(unsafe.Pointer(&args.Ptrs[i])) = 0
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:20:05 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/windows/exec_windows.go

    }
    
    // Delete frees ProcThreadAttributeList's resources.
    func (al *ProcThreadAttributeListContainer) Delete() {
    	deleteProcThreadAttributeList(al.data)
    	LocalFree(Handle(unsafe.Pointer(al.data)))
    	al.data = nil
    	al.pointers = nil
    }
    
    // List returns the actual ProcThreadAttributeList to be passed to StartupInfoEx.
    func (al *ProcThreadAttributeListContainer) List() *ProcThreadAttributeList {
    	return al.data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. test/stackobj2.go

    )
    
    // linked list up the stack, to test lots of stack objects.
    
    type T struct {
    	// points to a heap object. Test will make sure it isn't freed.
    	data *int64
    	// next pointer for a linked list of stack objects
    	next *T
    	// duplicate of next, to stress test the pointer buffers
    	// used during stack tracing.
    	next2 *T
    }
    
    func main() {
    	makelist(nil, 10000)
    }
    
    func makelist(x *T, n int64) {
    	if n%2 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 03 19:54:29 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  9. src/internal/runtime/atomic/types.go

    // hide pointers from the GC. Use with care and sparingly.
    // It is safe to use with values not found in the Go heap.
    // Prefer Store instead.
    //
    //go:nosplit
    func (p *Pointer[T]) StoreNoWB(value *T) {
    	p.u.StoreNoWB(unsafe.Pointer(value))
    }
    
    // Store updates the value atomically.
    //
    //go:nosplit
    func (p *Pointer[T]) Store(value *T) {
    	p.u.Store(unsafe.Pointer(value))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  10. src/encoding/gob/type.go

    			continue
    		}
    		break
    	}
    	// No luck yet, but if this is a base type (non-pointer), the pointer might satisfy.
    	if typ.Kind() != reflect.Pointer {
    		// Not a pointer, but does the pointer work?
    		if reflect.PointerTo(typ).Implements(gobEncDecType) {
    			return true, -1
    		}
    	}
    	return false, 0
    }
    
    // userType returns, and saves, the information associated with user-provided type rt.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
Back to top