Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 468 for heapUp (0.17 sec)

  1. test/uintptrescapes2.go

    	var v int                         // ERROR "moved to heap"
    	t.M1(uintptr(unsafe.Pointer(&v))) // ERROR "live at call to T.M1: .?autotmp" "stack object .autotmp_[0-9]+ unsafe.Pointer$"
    }
    
    func TestF2() {
    	var v int                                 // ERROR "moved to heap"
    	F2(0, 1, uintptr(unsafe.Pointer(&v)), 2)  // ERROR "live at call to newobject: .?autotmp" "live at call to F2: .?autotmp" "escapes to heap" "stack object .autotmp_[0-9]+ unsafe.Pointer$"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 24 18:24:24 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  2. test/escape_field.go

    	x X
    }
    
    func field0() {
    	i := 0 // ERROR "moved to heap: i$"
    	var x X
    	x.p1 = &i
    	sink = x.p1
    }
    
    func field1() {
    	i := 0 // ERROR "moved to heap: i$"
    	var x X
    	// BAD: &i should not escape
    	x.p1 = &i
    	sink = x.p2
    }
    
    func field3() {
    	i := 0 // ERROR "moved to heap: i$"
    	var x X
    	x.p1 = &i
    	sink = x // ERROR "x escapes to heap"
    }
    
    func field4() {
    	i := 0 // ERROR "moved to heap: i$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 12 08:31:49 UTC 2020
    - 2.9K bytes
    - Viewed (0)
  3. test/fixedbugs/issue12006.go

    	for i := 0; i < 1000; i++ {
    		var i, j, k int   // ERROR "moved to heap: i" "moved to heap: j" "moved to heap: k"
    		FooNx(&k, &i, &j) // ERROR "... argument does not escape"
    	}
    }
    
    func TFooNy() {
    	for i := 0; i < 1000; i++ {
    		var i, j, k int   // ERROR "moved to heap: i" "moved to heap: j" "moved to heap: k"
    		FooNy(&k, &i, &j) // ERROR "... argument escapes to heap"
    	}
    }
    
    func TFooNz() {
    	for i := 0; i < 1000; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 26 23:50:32 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  4. test/escape_iface.go

    	}
    	{
    		i := 0       // ERROR "moved to heap: i"
    		v := &M2{&i} // ERROR "&M2{...} escapes to heap"
    		var x M = v
    		sink = x
    	}
    	{
    		i := 0
    		v := &M2{&i} // ERROR "&M2{...} does not escape"
    		var x M = v
    		v1 := x.(*M2)
    		_ = v1
    	}
    	{
    		i := 0       // ERROR "moved to heap: i"
    		v := &M2{&i} // ERROR "&M2{...} escapes to heap"
    		// BAD: v does not escape to heap here
    		var x M = v
    		v1 := x.(*M2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 17:16:35 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. src/container/heap/example_intheap_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This example demonstrates an integer heap built using the heap interface.
    package heap_test
    
    import (
    	"container/heap"
    	"fmt"
    )
    
    // An IntHeap is a min-heap of ints.
    type IntHeap []int
    
    func (h IntHeap) Len() int           { return len(h) }
    func (h IntHeap) Less(i, j int) bool { return h[i] < h[j] }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  6. test/escape2n.go

    	*ppi = myprint1(z, 1, 2, 3) // ERROR "... argument escapes to heap$" "1 escapes to heap$" "2 escapes to heap$" "3 escapes to heap$"
    }
    
    func foo75aesc1(z *int) { // ERROR "z does not escape$"
    	sink = myprint1(z, 1, 2, 3) // ERROR "... argument escapes to heap$" "1 escapes to heap$" "2 escapes to heap$" "3 escapes to heap$"
    }
    
    func foo76(z *int) { // ERROR "z does not escape"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  7. test/fixedbugs/issue39292.go

    func (t) f() {
    }
    
    func x() {
    	x := t{}.f // ERROR "t{}.f escapes to heap"
    	x()
    }
    
    func y() {
    	var i int       // ERROR "moved to heap: i"
    	y := (&t{&i}).f // ERROR "\(&t{...}\).f escapes to heap" "&t{...} escapes to heap"
    	y()
    }
    
    func z() {
    	var i int    // ERROR "moved to heap: i"
    	z := t{&i}.f // ERROR "t{...}.f escapes to heap"
    	z()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 12 08:31:49 UTC 2020
    - 555 bytes
    - Viewed (0)
  8. src/container/heap/example_pq_test.go

    // This example demonstrates a priority queue built using the heap interface.
    package heap_test
    
    import (
    	"container/heap"
    	"fmt"
    )
    
    // An Item is something we manage in a priority queue.
    type Item struct {
    	value    string // The value of the item; arbitrary.
    	priority int    // The priority of the item in the queue.
    	// The index is needed by update and is maintained by the heap.Interface methods.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:27:36 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. test/fixedbugs/issue16095.go

    	}
    
    	// Force x to be allocated on the heap.
    	sink = &x
    	sink = nil
    
    	// Go to deferreturn after the panic below.
    	defer func() {
    		recover()
    	}()
    
    	// This call collects the heap-allocated version of x (oops!)
    	runtime.GC()
    
    	// Allocate that same object again and clobber it.
    	y := new([20]byte)
    	for i := 0; i < 20; i++ {
    		y[i] = 99
    	}
    	// Make sure y is heap allocated.
    	sink = y
    
    	panic(nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 27 16:48:48 UTC 2016
    - 1.9K bytes
    - Viewed (0)
  10. src/runtime/mgcpacer_test.go

    			},
    		},
    		{
    			// The most basic test case with a memory limit: a steady-state heap.
    			// Growth to an O(MiB) heap, then constant heap size, alloc/scan rates.
    			// Provide a lot of room for the limit. Essentially, this should behave just like
    			// the "Steady" test. Note that we don't simulate non-heap overheads, so the
    			// memory limit and the heap limit are identical.
    			name:          "SteadyMemoryLimit",
    			gcPercent:     100,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 13:53:21 UTC 2023
    - 39.3K bytes
    - Viewed (0)
Back to top