Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MyGenericFunc (0.19 sec)

  1. src/runtime/gc_test.go

    	got := runTestProg(t, "testprog", "GCMemoryLimitNoGCPercent")
    	want := "OK\n"
    	if got != want {
    		t.Fatalf("expected %q, but got %q", want, got)
    	}
    }
    
    func TestMyGenericFunc(t *testing.T) {
    	runtime.MyGenericFunc[int]()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. src/runtime/export_test.go

    )
    
    func SetPinnerLeakPanic(f func()) {
    	pinnerLeakPanic = f
    }
    func GetPinnerLeakPanic() func() {
    	return pinnerLeakPanic
    }
    
    var testUintptr uintptr
    
    func MyGenericFunc[T any]() {
    	systemstack(func() {
    		testUintptr = 4
    	})
    }
    
    func UnsafePoint(pc uintptr) bool {
    	fi := findfunc(pc)
    	v := pcdatavalue(fi, abi.PCDATA_UnsafePoint, pc)
    	switch v {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top