Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for allocateStack (0.21 sec)

  1. src/cmd/cgo/internal/testsanitizers/testdata/msan6.go

    S f() {
    	S *p;
    
    	p = (S *)(malloc(sizeof(S)));
    	p->a[0] = 0;
    	return *p;
    }
    */
    import "C"
    
    // allocateStack extends the stack so that stack copying doesn't
    // confuse the msan data structures.
    //
    //go:noinline
    func allocateStack(i int) int {
    	if i == 0 {
    		return i
    	}
    	return allocateStack(i - 1)
    }
    
    // F1 marks a chunk of stack as uninitialized.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top