Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 236 for heapUp (0.14 sec)

  1. src/cmd/link/internal/ld/outbuf_test.go

    			buf:  make([]byte, test.bufLen),
    			off:  test.off,
    			heap: make([]byte, test.heapLen),
    		}
    		pos, buf := ob.writeLoc(test.lenToWrite)
    		if pos != test.writePos {
    			t.Errorf("[%d] position = %d, expected %d", i, pos, test.writePos)
    		}
    		message := "mmapped area"
    		expected := ob.buf
    		if test.addressInHeap {
    			message = "heap"
    			expected = ob.heap
    		}
    		if &buf[0] != &expected[0] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 08 20:03:01 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/health/gc/GarbageCollectionStatsTest.groovy

        def "correctly calculates stats for heaps"() {
            def heapStats = GarbageCollectionStats.forHeap(heapEvents)
            expect:
            heapStats.valid
            heapStats.eventCount == 5
            heapStats.gcRate == 3.0d
            heapStats.maxSizeInBytes == 1000
            heapStats.usedPercent == 50
        }
    
        def "correctly calculates stats for non-heaps"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  3. test/fixedbugs/issue14999.go

    package p
    
    func f(x int) func(int) int {
    	return func(y int) int { return x + y } // ERROR "heap-allocated closure f\.func1, not allowed in runtime"
    }
    
    func g(x int) func(int) int { // ERROR "x escapes to heap, not allowed in runtime"
    	return func(y int) int { // ERROR "heap-allocated closure g\.func1, not allowed in runtime"
    		x += y
    		return x + y
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 04 17:00:19 UTC 2021
    - 535 bytes
    - Viewed (0)
  4. test/chan/sieve2.go

    			for min < head {
    				composites <- min
    				minchan := heap.Pop(&h).(*PeekCh)
    				min = minchan.head
    				minchan.head = <-minchan.ch
    				heap.Push(&h, minchan)
    			}
    			for min == head {
    				minchan := heap.Pop(&h).(*PeekCh)
    				min = minchan.head
    				minchan.head = <-minchan.ch
    				heap.Push(&h, minchan)
    			}
    			composites <- head
    			heap.Push(&h, &PeekCh{<-m, m})
    		}
    	}()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:44:02 UTC 2012
    - 3.9K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FileContentCacheFactory.java

         * @param normalizedCacheSize The maximum number of entries to cache in-heap, given a 'typical' heap size. The actual size may vary based on the actual heap available.
         * @param calculator The calculator to use to compute the value for a given file.
         * @param serializer The serializer to use to write values to persistent cache.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/outbuf_windows.go

    	bufHdr.Data = unsafe.Pointer(ptr)
    	bufHdr.Len = int(filesize)
    	bufHdr.Cap = int(filesize)
    
    	// 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
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 01:59:25 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/base/base.go

    	)
    
    	// Assumptions and observations of Go's garbage collector, as of Go 1.17-1.20:
    
    	// - the initial heap goal is 4M, by fiat.  It is possible for Go to start
    	//   with a heap as small as 512k, so this may change in the future.
    
    	// - except for the first heap goal, heap goal is a function of
    	//   observed-live at the previous GC and current GOGC.  After the first
    	//   GC, adjusting GOGC immediately updates GOGC; before the first GC,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:18:34 UTC 2023
    - 8K bytes
    - Viewed (0)
  8. pkg/queue/delay.go

    // limitations under the License.
    
    package queue
    
    import (
    	"container/heap"
    	"runtime"
    	"sync"
    	"time"
    
    	"istio.io/istio/pkg/log"
    )
    
    type delayTask struct {
    	do      func() error
    	runAt   time.Time
    	retries int
    }
    
    const maxTaskRetry = 3
    
    var _ heap.Interface = &pq{}
    
    // pq implements an internal priority queue so that tasks with the soonest expiry will be run first.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 06:27:31 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  9. test/escape5.go

    	p := leaktoret(&x)
    	_ = p
    }
    
    func f3() {
    	var x int // ERROR "moved to heap: x"
    	p := leaktoret(&x)
    	gp = p
    }
    
    func f4() {
    	var x int // ERROR "moved to heap: x"
    	p, q := leaktoret2(&x)
    	gp = p
    	gp = q
    }
    
    func f5() {
    	var x int
    	leaktoret22(leaktoret2(&x))
    }
    
    func f6() {
    	var x int // ERROR "moved to heap: x"
    	px1, px2 := leaktoret22(leaktoret2(&x))
    	gp = px1
    	_ = px2
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 5.3K 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