Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for allocateStack (0.14 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)
  2. src/internal/trace/internal/oldtrace/parser.go

    		if uint64(len(raw.args)) != want {
    			return fmt.Errorf("EvStack has wrong number of arguments: want %d, got %d", want, len(raw.args))
    		}
    		id := uint32(raw.args[0])
    		if id != 0 && size > 0 {
    			stk := p.allocateStack(size)
    			for i := 0; i < int(size); i++ {
    				pc := raw.args[2+i*4+0]
    				fn := raw.args[2+i*4+1]
    				file := raw.args[2+i*4+2]
    				line := raw.args[2+i*4+3]
    				stk[i] = pc
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 46.8K bytes
    - Viewed (0)
Back to top