Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestGcDeepNesting (0.32 sec)

  1. src/runtime/gc_test.go

    		t.Skip("skipping test; GOGC=off in environment")
    	}
    	got := runTestProg(t, "testprog", "GCSys")
    	want := "OK\n"
    	if got != want {
    		t.Fatalf("expected %q, but got %q", want, got)
    	}
    }
    
    func TestGcDeepNesting(t *testing.T) {
    	type T [2][2][2][2][2][2][2][2][2][2]*int
    	a := new(T)
    
    	// Prevent the compiler from applying escape analysis.
    	// This makes sure new(T) is allocated on heap, not on the stack.
    	t.Logf("%p", a)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top