- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestPinnerInterface (0.43 sec)
-
src/runtime/pinner_test.go
if runtime.IsPinned(addr[i]) { t.Fatal("still marked as pinned") } if runtime.GetPinCounter(addr[i]) != nil { t.Fatal("pin counter should not exist") } } } func TestPinnerInterface(t *testing.T) { var pinner runtime.Pinner o := new(obj) ifc := any(o) pinner.Pin(&ifc) if !runtime.IsPinned(unsafe.Pointer(&ifc)) { t.Fatal("not marked as pinned") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 13 18:36:12 UTC 2023 - 11K bytes - Viewed (0)