Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 468 for heapUp (0.11 sec)

  1. src/time/tick_test.go

    				return
    			}
    		}
    		t.Errorf("len(C) = %d, want 1", n)
    	}
    
    	// Test simple stop; timer never in heap.
    	tim.Stop()
    	noTick()
    
    	// Test modify of timer not in heap.
    	tim.Reset(10000 * Second)
    	noTick()
    
    	if synctimerchan {
    		// Test modify of timer in heap.
    		tim.Reset(1)
    		Sleep(sched)
    		if l, c := len(C), cap(C); l != 0 || c != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. src/runtime/mspanset.go

    	// span in the heap were stored in this set, and each span were
    	// the minimum size (1 runtime page, 8 KiB), then roughly the
    	// smallest heap which would be unrepresentable is 32 TiB in size.
    	index atomicHeadTailIndex
    }
    
    const (
    	spanSetBlockEntries = 512 // 4KB on 64-bit
    	spanSetInitSpineCap = 256 // Enough for 1GB heap on 64-bit
    )
    
    type spanSetBlock struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. src/runtime/arena.go

    // Each chunk must be a multiple of the heap arena size, or the heap arena size must
    // be divisible by the arena chunks. The address space for each chunk, and each
    // corresponding heapArena for that address space, are eternally reserved for use as
    // arena chunks. That is, they can never be used for the general heap. Each chunk
    // is also represented by a single mspan, and is modeled as a single large heap
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/health/DaemonHealthStatsTest.groovy

            runningStats.getPrettyUpTime() >> "3 mins"
            runningStats.getAllBuildsTime() >> 1000
    
            then:
            healthStats.healthInfo == "[uptime: 3 mins, performance: 98%, GC rate: 1.00/s, heap usage: 10% of 1 KiB, non-heap usage: 50% of 2 KiB]"
        }
    
        def "handles no garbage collection data"() {
            when:
            gcInfo.getCollectionTime() >> 25
            runningStats.getPrettyUpTime() >> "3 mins"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. src/runtime/mbitmap.go

    	}
    	getg().m.traceback = 2
    	throw("found bad pointer in Go heap (incorrect use of unsafe or cgo?)")
    }
    
    // findObject returns the base address for the heap object containing
    // the address p, the object's span, and the index of the object in s.
    // If p does not point into a heap object, it returns base == 0.
    //
    // If p points is an invalid heap pointer and debug.invalidptr != 0,
    // findObject panics.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 60K bytes
    - Viewed (0)
  6. src/container/heap/heap_test.go

    	t.Helper()
    	n := h.Len()
    	j1 := 2*i + 1
    	j2 := 2*i + 2
    	if j1 < n {
    		if h.Less(j1, i) {
    			t.Errorf("heap invariant invalidated [%d] = %d > [%d] = %d", i, h[i], j1, h[j1])
    			return
    		}
    		h.verify(t, j1)
    	}
    	if j2 < n {
    		if h.Less(j2, i) {
    			t.Errorf("heap invariant invalidated [%d] = %d > [%d] = %d", i, h[i], j1, h[j2])
    			return
    		}
    		h.verify(t, j2)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  7. test/fixedbugs/issue15747.go

    // Issue 15747: liveness analysis was marking heap-escaped params live too much,
    // and worse was using the wrong bitmap bits to do so.
    
    package p
    
    var global *[]byte
    
    type Q struct{}
    
    type T struct{ M string }
    
    var b bool
    
    func f1(q *Q, xx []byte) interface{} { // ERROR "live at call to newobject: xx$" "live at entry to f1: xx$"
    	// xx was copied from the stack to the heap on the previous line:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. src/runtime/lfstack_test.go

    	"math/rand"
    	. "runtime"
    	"testing"
    	"unsafe"
    )
    
    type MyNode struct {
    	LFNode
    	data int
    }
    
    // allocMyNode allocates nodes that are stored in an lfstack
    // outside the Go heap.
    // We require lfstack objects to live outside the heap so that
    // checkptr passes on the unsafe shenanigans used.
    func allocMyNode(data int) *MyNode {
    	n := (*MyNode)(PersistentAlloc(unsafe.Sizeof(MyNode{})))
    	LFNodeValidate(&n.LFNode)
    	n.data = data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 23:12:04 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  9. platforms/core-runtime/process-services/src/test/groovy/org/gradle/process/internal/health/memory/MaximumHeapHelperTest.groovy

     * limitations under the License.
     */
    
    package org.gradle.process.internal.health.memory
    
    import spock.lang.Specification
    
    class MaximumHeapHelperTest extends Specification {
    
        def "default max heap on IBM #testCase is #expected"() {
            expect:
            maximumHeapHelper.getDefaultMaximumHeapSize(osTotalMemory.bytes) == expected.bytes
    
            where:
            osTotalMemory            | expected
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:10:02 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  10. test/escape_calls.go

    package foo
    
    func f(buf []byte) []byte { // ERROR "leaking param: buf to result ~r0 level=0$"
    	return buf
    }
    
    func g(*byte) string
    
    func h(e int) {
    	var x [32]byte // ERROR "moved to heap: x$"
    	g(&f(x[:])[0])
    }
    
    type Node struct {
    	s           string
    	left, right *Node
    }
    
    func walk(np **Node) int { // ERROR "leaking param content: np"
    	n := *np
    	w := len(n.s)
    	if n == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 22:06:07 UTC 2023
    - 1.6K bytes
    - Viewed (0)
Back to top