Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 261 for heal (0.03 sec)

  1. 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)
  2. hack/update-generated-api-compatibility-data.sh

    UPDATE_COMPATIBILITY_FIXTURE_DATA=true go test k8s.io/api -run //HEAD >/dev/null 2>&1 || true
    UPDATE_COMPATIBILITY_FIXTURE_DATA=true go test k8s.io/apiextensions-apiserver/pkg/apis -run //HEAD >/dev/null 2>&1 || true
    
    # Now that we have regenerated data at HEAD, run the test without suppressing output or failures
    go test k8s.io/api -run //HEAD -count=1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:44 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. platforms/core-runtime/functional/src/main/java/org/gradle/internal/collect/PersistentList.java

            private final T head;
            private final PersistentList<T> tail;
    
            public Cons(T head, PersistentList<T> tail) {
                this.head = head;
                this.tail = tail;
            }
    
            @Override
            public void forEach(Consumer<? super T> consumer) {
                consumer.accept(head);
                tail.forEach(consumer);
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 09:24:00 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. 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)
  7. src/sync/poolqueue.go

    func (d *poolDequeue) unpack(ptrs uint64) (head, tail uint32) {
    	const mask = 1<<dequeueBits - 1
    	head = uint32((ptrs >> dequeueBits) & mask)
    	tail = uint32(ptrs & mask)
    	return
    }
    
    func (d *poolDequeue) pack(head, tail uint32) uint64 {
    	const mask = 1<<dequeueBits - 1
    	return (uint64(head) << dequeueBits) |
    		uint64(tail&mask)
    }
    
    // pushHead adds val at the head of the queue. It returns false if the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 18:12:29 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. test/escape_runtime_atomic.go

    }
    
    var ptr unsafe.Pointer
    
    func Storep() {
    	var x int // ERROR "moved to heap: x"
    	atomic.StorepNoWB(unsafe.Pointer(&ptr), unsafe.Pointer(&x))
    }
    
    func Casp1() {
    	// BAD: should always be "does not escape"
    	x := new(int) // ERROR "escapes to heap|does not escape"
    	var y int     // ERROR "moved to heap: y"
    	atomic.Casp1(&ptr, unsafe.Pointer(x), unsafe.Pointer(&y))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 874 bytes
    - Viewed (0)
Back to top