Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 482 for mheap (0.1 sec)

  1. test/escape_reflect.go

    }
    
    // Unfortunate: x doesn't need to escape to heap, just to result.
    func slice1(x []byte) []byte { // ERROR "leaking param: x$"
    	v := reflect.ValueOf(x) // ERROR "x escapes to heap"
    	return v.Slice(1, 2).Bytes()
    }
    
    // Unfortunate: x doesn't need to escape to heap, just to result.
    func slice2(x string) string { // ERROR "leaking param: x$"
    	v := reflect.ValueOf(x) // ERROR "x escapes to heap"
    	return v.Slice(1, 2).String()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  2. test/escape2.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)
  3. 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)
  4. 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)
  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/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)
  7. src/runtime/extern.go

    		#%           percentage of time spent in GC since program start
    		#+...+#      wall-clock/CPU times for the phases of the GC
    		#->#-># MB   heap size at GC start, at GC end, and live heap, or /gc/scan/heap:bytes
    		# MB goal    goal heap size, or /gc/heap/goal:bytes
    		# MB stacks  estimated scannable stack size, or /gc/scan/stack:bytes
    		# MB globals scannable global size, or /gc/scan/globals:bytes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/CachingModuleComponentRepositoryTest.groovy

            false                    | MetadataFetchingCost.CHEAP     | MetadataFetchingCost.CHEAP
            false                    | MetadataFetchingCost.FAST      | MetadataFetchingCost.CHEAP
            false                    | MetadataFetchingCost.EXPENSIVE | MetadataFetchingCost.CHEAP
            true                     | MetadataFetchingCost.CHEAP     | MetadataFetchingCost.CHEAP
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top