Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestPinnerInterface (0.43 sec)

  1. 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)
Back to top