Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSliceOfGC (0.27 sec)

  1. src/reflect/all_test.go

    	st := SliceOf(TypeOf(x))
    	defer func() {
    		err := recover()
    		if err == nil {
    			t.Fatal("slice overflow does not panic")
    		}
    	}()
    	MakeSlice(st, int(l), int(l))
    }
    
    func TestSliceOfGC(t *testing.T) {
    	type T *uintptr
    	tt := TypeOf(T(nil))
    	st := SliceOf(tt)
    	const n = 100
    	var x []any
    	for i := 0; i < n; i++ {
    		v := MakeSlice(st, n, n)
    		for j := 0; j < v.Len(); j++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top