- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 383 for heapUp (0.13 sec)
-
test/escape_slice.go
i := 0 // ERROR "moved to heap: i" s = append(s, &i) _ = s } func slice1() *int { var s []*int i := 0 // ERROR "moved to heap: i" s = append(s, &i) return s[0] } func slice2() []*int { var s []*int i := 0 // ERROR "moved to heap: i" s = append(s, &i) return s } func slice3() *int { var s []*int i := 0 // ERROR "moved to heap: i" s = append(s, &i)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 3.9K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
src/runtime/internal/sys/nih.go
// - Maps and channels contains no-in-heap types are disallowed. // // 4. Write barriers on pointers to not-in-heap types can be omitted. // // The last point is the real benefit of NotInHeap. The runtime uses // it for low-level internal structures to avoid memory barriers in the // scheduler and the memory allocator where they are illegal or simply
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 18:24:50 UTC 2022 - 1.7K bytes - Viewed (0) -
src/runtime/mgcscavenge.go
// the heap goal is defined in terms of bytes of objects, rather than pages like // RSS. As a result, we need to take into account for fragmentation internal to // spans. heapGoal / lastHeapGoal defines the ratio between the current heap goal // and the last heap goal, which tells us by how much the heap is growing and // shrinking. We estimate what the heap will grow to in terms of pages by taking
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:48:45 UTC 2024 - 52.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/cache/expiring.go
} func (c *Expiring) gc(now time.Time) { for { // Return from gc if the heap is empty or the next element is not yet // expired. // // heap[0] is a peek at the next element in the heap, which is not obvious // from looking at the (*expiringHeap).Pop() implementation below. // heap.Pop() swaps the first entry with the last entry of the heap, then // calls (*expiringHeap).Pop() which returns the last element.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 22 15:51:23 UTC 2023 - 5.6K bytes - Viewed (0) -
test/escape4.go
p = alloc(3) // ERROR "inlining call to alloc" "moved to heap: x" } f() } func f2() {} // ERROR "can inline f2" // No inline for recover; panic now allowed to inline. func f3() { panic(1) } // ERROR "can inline f3" "1 escapes to heap" func f4() { recover() } func f5() *byte { // ERROR "can inline f5" type T struct { x [1]byte } t := new(T) // ERROR "new.T. escapes to heap"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 19:43:26 UTC 2023 - 1.4K bytes - Viewed (0) -
pkg/test/loadbalancersim/timer/queue.go
} } }() return q } func (q *Queue) Len() int { q.mutex.Lock() defer q.mutex.Unlock() return q.heap.Len() } func (q *Queue) Schedule(handler func(), deadline time.Time) { // Add the timer to the heap. q.mutex.Lock() heap.Push(&q.heap, &entry{ handler: handler, deadline: deadline, index: 0, }) q.mutex.Unlock() // Request that the timer be reset.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jul 20 19:13:32 UTC 2023 - 3.6K bytes - Viewed (0)