Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for LeaksABit (0.16 sec)

  1. test/escape2.go

    	return b.ii
    }
    
    func (b Bar) LeaksToo() *int { // ERROR "leaking param: b to result ~r0 level=0$"
    	v := 0 // ERROR "moved to heap: v$"
    	b.ii = &v
    	return b.ii
    }
    
    func (b *Bar) LeaksABit() *int { // ERROR "leaking param: b to result ~r0 level=1$"
    	v := 0 // ERROR "moved to heap: v$"
    	b.ii = &v
    	return b.ii
    }
    
    func (b Bar) StillNoLeak() int { // ERROR "b does not escape$"
    	v := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  2. test/escape2n.go

    	return b.ii
    }
    
    func (b Bar) LeaksToo() *int { // ERROR "leaking param: b to result ~r0 level=0$"
    	v := 0 // ERROR "moved to heap: v$"
    	b.ii = &v
    	return b.ii
    }
    
    func (b *Bar) LeaksABit() *int { // ERROR "leaking param: b to result ~r0 level=1$"
    	v := 0 // ERROR "moved to heap: v$"
    	b.ii = &v
    	return b.ii
    }
    
    func (b Bar) StillNoLeak() int { // ERROR "b does not escape$"
    	v := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
Back to top