- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for efaceeq (0.11 sec)
-
src/cmd/internal/goobj/builtinlist.go
{"runtime.assertE2I2", 1}, {"runtime.panicdottypeE", 1}, {"runtime.panicdottypeI", 1}, {"runtime.panicnildottype", 1}, {"runtime.typeAssert", 1}, {"runtime.interfaceSwitch", 1}, {"runtime.ifaceeq", 1}, {"runtime.efaceeq", 1}, {"runtime.panicrangestate", 1}, {"runtime.deferrangefunc", 1}, {"runtime.rand32", 1}, {"runtime.makemap64", 1}, {"runtime.makemap", 1}, {"runtime.makemap_small", 1},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 7.4K bytes - Viewed (0) -
test/fixedbugs/issue15528.go
deep interface{} = [1]struct{ a *[2]byte }{{a: &[2]byte{'z', 'w'}}} ch interface{} = make(chan bool, 1) ) func main() { var fail bool for i, test := range efaces { s := fmt.Sprintf("%[1]T %[1]v", test.x) if s != test.s { fmt.Printf("eface(%d)=%q want %q\n", i, s, test.s) fail = true } } for i, test := range ifaces { s := fmt.Sprintf("%[1]T %#[1]v %[1]s", test.x) if s != test.s {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 12 14:31:26 UTC 2016 - 3.1K bytes - Viewed (0) -
test/typeparam/eface.go
Matthew Dempsky <******@****.***> 1646087539 -0800
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.1K bytes - Viewed (0) -
test/interface/fake.go
} /* comparing uncomparable type float32 throw: interface compare panic PC=0x28ceb8 [1] throw+0x41 /Users/rsc/goX/src/runtime/runtime.c:54 throw(0x3014a, 0x0) ifaceeq+0x15c /Users/rsc/goX/src/runtime/iface.c:501 ifaceeq(0x2aa7c0, 0x0, 0x0, 0x0, 0x2aa7c0, ...) sys·ifaceeq+0x48 /Users/rsc/goX/src/runtime/iface.c:527 sys·ifaceeq(0x2aa7c0, 0x0, 0x0, 0x0, 0x2aa7c0, ...) main·main+0x190 /Users/rsc/goX/src/cmd/gc/x.go:10
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 19 06:33:41 UTC 2012 - 1.8K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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)