Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFuncLayout (0.12 sec)

  1. src/reflect/all_test.go

    func clobber() {
    	runtime.GC()
    	for i := 1; i < 32; i++ {
    		for j := 0; j < 10; j++ {
    			obj := make([]*byte, i)
    			sink = obj
    		}
    	}
    	runtime.GC()
    }
    
    func TestFuncLayout(t *testing.T) {
    	align := func(x uintptr) uintptr {
    		return (x + goarch.PtrSize - 1) &^ (goarch.PtrSize - 1)
    	}
    	var r []byte
    	if goarch.PtrSize == 4 {
    		r = []byte{0, 0, 0, 1}
    	} else {
    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