Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 45 for efaceeq (0.12 sec)

  1. src/runtime/iface.go

    	stringEface any = stringInterfacePtr("")
    	sliceEface  any = sliceInterfacePtr(nil)
    
    	uint16Type *_type = efaceOf(&uint16Eface)._type
    	uint32Type *_type = efaceOf(&uint32Eface)._type
    	uint64Type *_type = efaceOf(&uint64Eface)._type
    	stringType *_type = efaceOf(&stringEface)._type
    	sliceType  *_type = efaceOf(&sliceEface)._type
    )
    
    // The conv and assert functions below do very similar things.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  2. src/runtime/heapdump.go

    	}
    	for p := gp._panic; p != nil; p = p.link {
    		dumpint(tagPanic)
    		dumpint(uint64(uintptr(unsafe.Pointer(p))))
    		dumpint(uint64(uintptr(unsafe.Pointer(gp))))
    		eface := efaceOf(&p.arg)
    		dumpint(uint64(uintptr(unsafe.Pointer(eface._type))))
    		dumpint(uint64(uintptr(eface.data)))
    		dumpint(0) // was p->defer, no longer recorded
    		dumpint(uint64(uintptr(unsafe.Pointer(p.link))))
    	}
    }
    
    func dumpgs() {
    	assertWorldStopped()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. test/fixedbugs/issue52612.go

    import (
    	"sync/atomic"
    	"unsafe"
    )
    
    var one interface{} = 1
    
    type eface struct {
    	typ  unsafe.Pointer
    	data unsafe.Pointer
    }
    
    func f(c chan struct{}) {
    	var x atomic.Value
    
    	go func() {
    		x.Swap(one) // writing using the old marker
    	}()
    	for i := 0; i < 100000; i++ {
    		v := x.Load() // reading using the new marker
    
    		p := (*eface)(unsafe.Pointer(&v)).typ
    		if uintptr(p) == ^uintptr(0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 29 20:42:52 UTC 2022
    - 881 bytes
    - Viewed (0)
  4. src/sync/poolqueue.go

    	// otherwise. A slot is still in use until *both* the tail
    	// index has moved beyond it and typ has been set to nil. This
    	// is set to nil atomically by the consumer and read
    	// atomically by the producer.
    	vals []eface
    }
    
    type eface struct {
    	typ, val unsafe.Pointer
    }
    
    const dequeueBits = 32
    
    // dequeueLimit is the maximum size of a poolDequeue.
    //
    // This must be at most (1<<dequeueBits)/2 because detecting fullness
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 18:12:29 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. src/runtime/export_debug_test.go

    	}
    
    	tid := int(gp.lockedm.ptr().procid)
    	if tid == 0 {
    		return nil, plainError("missing tid")
    	}
    
    	f := efaceOf(&fn)
    	if f._type == nil || f._type.Kind_&abi.KindMask != abi.Func {
    		return nil, plainError("fn must be a function")
    	}
    	fv := (*funcval)(f.data)
    
    	a := efaceOf(&stackArgs)
    	if a._type != nil && a._type.Kind_&abi.KindMask != abi.Pointer {
    		return nil, plainError("args must be a pointer or nil")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 15:41:45 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. src/runtime/gcinfo_test.go

    	verifyGCInfo(t, "bss BigStruct", &bssBigStruct, infoBigStruct())
    	verifyGCInfo(t, "bss string", &bssString, infoString)
    	verifyGCInfo(t, "bss slice", &bssSlice, infoSlice)
    	verifyGCInfo(t, "bss eface", &bssEface, infoEface)
    	verifyGCInfo(t, "bss iface", &bssIface, infoIface)
    
    	verifyGCInfo(t, "data Ptr", &dataPtr, infoPtr)
    	verifyGCInfo(t, "data ScalarPtr", &dataScalarPtr, infoScalarPtr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:58:08 UTC 2023
    - 6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/object_test.go

    func TestEmbeddedMethod(t *testing.T) {
    	const src = `package p; type I interface { error }`
    	pkg := mustTypecheck(src, nil, nil)
    
    	// get original error.Error method
    	eface := Universe.Lookup("error")
    	orig, _, _ := LookupFieldOrMethod(eface.Type(), false, nil, "Error")
    	if orig == nil {
    		t.Fatalf("original error.Error not found")
    	}
    
    	// get embedded error.Error method
    	iface := pkg.Scope().Lookup("I")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. src/sync/export_test.go

    // poolDequeue testing.
    type PoolDequeue interface {
    	PushHead(val any) bool
    	PopHead() (any, bool)
    	PopTail() (any, bool)
    }
    
    func NewPoolDequeue(n int) PoolDequeue {
    	d := &poolDequeue{
    		vals: make([]eface, n),
    	}
    	// For testing purposes, set the head and tail indexes close
    	// to wrapping around.
    	d.headTail.Store(d.pack(1<<dequeueBits-500, 1<<dequeueBits-500))
    	return d
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:39:52 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. src/go/types/object_test.go

    func TestEmbeddedMethod(t *testing.T) {
    	const src = `package p; type I interface { error }`
    	pkg := mustTypecheck(src, nil, nil)
    
    	// get original error.Error method
    	eface := Universe.Lookup("error")
    	orig, _, _ := LookupFieldOrMethod(eface.Type(), false, nil, "Error")
    	if orig == nil {
    		t.Fatalf("original error.Error not found")
    	}
    
    	// get embedded error.Error method
    	iface := pkg.Scope().Lookup("I")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. src/runtime/runtime-gdb.py

    		# "0x429d6c <runtime.gopark+284>", so
    		# chop at first space.
    		pc = int(str(pc).split(None, 1)[0], 16)
    	return pc
    
    
    #
    #  For reference, this is what we're trying to do:
    #  eface: p *(*(struct 'runtime.rtype'*)'main.e'->type_->data)->string
    #  iface: p *(*(struct 'runtime.rtype'*)'main.s'->tab->Type->data)->string
    #
    # interface types can't be recognized by their name, instead we check
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 15.4K bytes
    - Viewed (0)
Back to top