Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for heapUp (0.11 sec)

  1. src/internal/trace/internal/oldtrace/order.go

    }
    
    func (h *orderEventList) Push(x orderEvent) {
    	*h = append(*h, x)
    	heapUp(h, len(*h)-1)
    }
    
    func (h *orderEventList) Pop() orderEvent {
    	n := len(*h) - 1
    	(*h)[0], (*h)[n] = (*h)[n], (*h)[0]
    	heapDown(h, 0, n)
    	x := (*h)[len(*h)-1]
    	*h = (*h)[:len(*h)-1]
    	return x
    }
    
    func heapUp(h *orderEventList, j int) {
    	for {
    		i := (j - 1) / 2 // parent
    		if i == j || !h.Less(j, i) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/profile/legacy_java_profile.go

    		PeriodType: &ValueType{},
    	}
    	header := string(bytes.TrimSpace(h[0]))
    
    	var err error
    	var pType string
    	switch header {
    	case "--- heapz 1 ---":
    		pType = "heap"
    	case "--- contentionz 1 ---":
    		pType = "contention"
    	default:
    		return nil, errUnrecognized
    	}
    
    	if b, err = parseJavaHeader(pType, h[1], p); err != nil {
    		return nil, err
    	}
    	var locs map[uint64]*Location
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/AbstractScriptCachingIntegrationTest.kt

            executerForCacheInspection(*arguments).run()
    
        protected
        fun buildWithDaemonHeapSize(heapMb: Int, vararg arguments: String): ExecutionResult =
            executerForCacheInspection(*arguments)
                .withBuildJvmOpts("-Xms${heapMb}m", "-Xmx${heapMb}m")
                .run()
    
        private
        fun executerForCacheInspection(vararg arguments: String): GradleExecuter =
            gradleExecuterFor(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:33:23 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. src/internal/trace/batchcursor_test.go

    	heap[len(heap)-1].ev.time = 21
    	heapUpdate(heap, len(heap)-1)
    	checkHeap(t, heap)
    	if heap[len(heap)-1].ev.time != 21 {
    		t.Fatalf("heap update failed, expected %d as heap min: %s", 21, heapDebugString(heap))
    	}
    
    	// Update the last element to be smaller.
    	heap[len(heap)-1].ev.time = 7
    	heapUpdate(heap, len(heap)-1)
    	checkHeap(t, heap)
    	if heap[len(heap)-1].ev.time == 21 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 3K bytes
    - Viewed (0)
  5. src/internal/trace/batchcursor.go

    	heapSiftDown(heap, i)
    }
    
    func heapRemove(heap []*batchCursor, i int) []*batchCursor {
    	// Sift index i up to the root, ignoring actual values.
    	for i > 0 {
    		heap[(i-1)/2], heap[i] = heap[i], heap[(i-1)/2]
    		i = (i - 1) / 2
    	}
    	// Swap the root with the last element, then remove it.
    	heap[0], heap[len(heap)-1] = heap[len(heap)-1], heap[0]
    	heap = heap[:len(heap)-1]
    	// Sift the root down.
    	heapSiftDown(heap, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. testing/internal-performance-testing/src/templates/root-project/pom.xml

                                    def heap = ManagementFactory.memoryMXBean.heapMemoryUsage
                                    def nonHeap = ManagementFactory.memoryMXBean.nonHeapMemoryUsage
                                    println "BEFORE GC"
                                    println "heap: \${format(heap.used)} (initial \${format(heap.init)}, committed \${format(heap.committed)}, max \${format(heap.max)}"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/outbuf_mmap.go

    	if err != nil {
    		return err
    	}
    
    	// copy heap to new mapping
    	if uint64(oldlen+len(out.heap)) > filesize {
    		panic("mmap size too small")
    	}
    	copy(out.buf[oldlen:], out.heap)
    	out.heap = out.heap[:0]
    	return nil
    }
    
    func (out *OutBuf) munmap() {
    	if out.buf == nil {
    		return
    	}
    	syscall.Munmap(out.buf)
    	out.buf = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:20:31 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. src/runtime/traceexp.go

    	// Experimental heap span events. IDs map reversibly to base addresses.
    	traceEvSpan      // heap span exists [timestamp, id, npages, type/class]
    	traceEvSpanAlloc // heap span alloc [timestamp, id, npages, type/class]
    	traceEvSpanFree  // heap span free [timestamp, id]
    
    	// Experimental heap object events. IDs map reversibly to addresses.
    	traceEvHeapObject      // heap object exists [timestamp, id, type]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/outbuf_nommap.go

    package ld
    
    // Mmap allocates an in-heap output buffer with the given size. It copies
    // any old data (if any) to the new buffer.
    func (out *OutBuf) Mmap(filesize uint64) error {
    	// We need space to put all the symbols before we apply relocations.
    	oldheap := out.heap
    	if filesize < uint64(len(oldheap)) {
    		panic("mmap size too small")
    	}
    	out.heap = make([]byte, filesize)
    	copy(out.heap, oldheap)
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:20:31 UTC 2024
    - 660 bytes
    - Viewed (0)
  10. src/internal/abi/escape.go

    import "unsafe"
    
    // NoEscape hides the pointer p from escape analysis, preventing it
    // from escaping to the heap. It compiles down to nothing.
    //
    // WARNING: This is very subtle to use correctly. The caller must
    // ensure that it's truly safe for p to not escape to the heap by
    // maintaining runtime pointer invariants (for example, that globals
    // and the heap may not generally point into a stack).
    //
    //go:nosplit
    //go:nocheckptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 884 bytes
    - Viewed (0)
Back to top