Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/runtime/time.go

    	}
    	if heap[i].timer != tw.timer {
    		heap[i] = tw
    	}
    }
    
    // siftDown puts the timer at position i in the right place
    // in the heap by moving it down toward the bottom of the heap.
    func (ts *timers) siftDown(i int) {
    	heap := ts.heap
    	n := len(heap)
    	if i >= n {
    		badTimer()
    	}
    	if i*timerHeapN+1 >= n {
    		return
    	}
    	tw := heap[i]
    	when := tw.when
    	if when <= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/github.com/google/pprof/profile/legacy_profile.go

    	}
    	return addrs, nil
    }
    
    // scaleHeapSample adjusts the data from a heapz Sample to
    // account for its probability of appearing in the collected
    // data. heapz profiles are a sampling of the memory allocations
    // requests in a program. We estimate the unsampled value by dividing
    // each collected sample by its probability of appearing in the
    // profile. heapz v2 profiles rely on a poisson process to determine
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 32.8K bytes
    - Viewed (0)
  3. src/runtime/mpagealloc.go

    //
    // A note on latency: for sufficiently small heaps (<10s of GiB) this function will take constant
    // time, but may take time proportional to the size of the mapped heap beyond that.
    //
    // The heap lock must not be held over this operation, since it will briefly acquire
    // the heap lock.
    //
    // Must be called on the system stack because it acquires the heap lock.
    //
    //go:systemstack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/runtime/debuglog.go

    			throw("failed to allocate debug log")
    		}
    		l.w.r.data = &l.w.data
    		l.owned.Store(1)
    
    		// Prepend to allDloggers list.
    		headp := (*uintptr)(unsafe.Pointer(&allDloggers))
    		for {
    			head := atomic.Loaduintptr(headp)
    			l.allLink = (*dlogger)(unsafe.Pointer(head))
    			if atomic.Casuintptr(headp, head, uintptr(unsafe.Pointer(l))) {
    				break
    			}
    		}
    	}
    
    	// If the time delta is getting too high, write a new sync
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/runtime/mstats.go

    	// Mallocs is the cumulative count of heap objects allocated.
    	// The number of live objects is Mallocs - Frees.
    	Mallocs uint64
    
    	// Frees is the cumulative count of heap objects freed.
    	Frees uint64
    
    	// Heap memory statistics.
    	//
    	// Interpreting the heap statistics requires some knowledge of
    	// how Go organizes memory. Go divides the virtual address
    	// space of the heap into "spans", which are contiguous
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/health/HealthExpirationStrategyTest.groovy

        }
    
        def health(GarbageCollectionStats heap, GarbageCollectionStats metaspace) {
            return Stub(DaemonHealthStats) {
                getHeapStats() >> heap
                getNonHeapStats() >> metaspace
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 11.8K bytes
    - Viewed (0)
Back to top