Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 461 for mheap (0.05 sec)

  1. src/runtime/mgcscavenge.go

    // the heap goal is defined in terms of bytes of objects, rather than pages like
    // RSS. As a result, we need to take into account for fragmentation internal to
    // spans. heapGoal / lastHeapGoal defines the ratio between the current heap goal
    // and the last heap goal, which tells us by how much the heap is growing and
    // shrinking. We estimate what the heap will grow to in terms of pages by taking
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:48:45 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  2. src/runtime/mgc.go

    	mheap_.pagesSwept.Store(0)
    	mheap_.sweepArenas = mheap_.allArenas
    	mheap_.reclaimIndex.Store(0)
    	mheap_.reclaimCredit.Store(0)
    	unlock(&mheap_.lock)
    
    	sweep.centralIndex.clear()
    
    	if !concurrentSweep || mode == gcForceBlockMode {
    		// Special case synchronous sweep.
    		// Record that no proportional sweeping has to happen.
    		lock(&mheap_.lock)
    		mheap_.sweepPagesPerByte = 0
    		unlock(&mheap_.lock)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  3. src/container/heap/heap.go

    // Package heap provides heap operations for any type that implements
    // heap.Interface. A heap is a tree with the property that each node is the
    // minimum-valued node in its subtree.
    //
    // The minimum element in the tree is the root, at index 0.
    //
    // A heap is a common way to implement a priority queue. To build a priority
    // queue, implement the Heap interface with the (negative) priority as the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:10 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/heap.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package ld
    
    import "cmd/link/internal/loader"
    
    // Min-heap implementation, for the deadcode pass.
    // Specialized for loader.Sym elements.
    
    type heap []loader.Sym
    
    func (h *heap) push(s loader.Sym) {
    	*h = append(*h, s)
    	// sift up
    	n := len(*h) - 1
    	for n > 0 {
    		p := (n - 1) / 2 // parent
    		if (*h)[p] <= (*h)[n] {
    			break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 16:55:22 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. android/guava-tests/benchmark/com/google/common/collect/MinMaxPriorityQueueBenchmark.java

        MinMaxPriorityQueue<T> mmHeap;
    
        public InvertedMinMaxPriorityQueue(Comparator<T> comparator) {
          mmHeap = MinMaxPriorityQueue.orderedBy(comparator).create();
        }
    
        @Override
        protected Queue<T> delegate() {
          return mmHeap;
        }
    
        @Override
        public @Nullable T poll() {
          return mmHeap.pollLast();
        }
      }
    
      public enum HeapType {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. src/cmd/trace/testdata/go122.test

    String id=179
    	data="net.setKeepAlive"
    String id=180
    	data="/usr/local/google/home/mknyszek/work/go-1/src/net/sockopt_posix.go"
    String id=181
    	data="runtime.(*mheap).alloc"
    String id=182
    	data="/usr/local/google/home/mknyszek/work/go-1/src/runtime/mheap.go"
    String id=183
    	data="runtime.(*mcentral).grow"
    String id=184
    	data="/usr/local/google/home/mknyszek/work/go-1/src/runtime/mcentral.go"
    String id=185
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 17:15:58 UTC 2024
    - 166K bytes
    - Viewed (0)
  7. src/runtime/metrics.go

    	a.gcCyclesForced = uint64(memstats.numforcedgc)
    
    	systemstack(func() {
    		lock(&mheap_.lock)
    		a.mSpanSys = memstats.mspan_sys.load()
    		a.mSpanInUse = uint64(mheap_.spanalloc.inuse)
    		a.mCacheSys = memstats.mcache_sys.load()
    		a.mCacheInUse = uint64(mheap_.cachealloc.inuse)
    		unlock(&mheap_.lock)
    	})
    }
    
    // cpuStatsAggregate represents CPU stats obtained from the runtime
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 26K bytes
    - Viewed (0)
  8. src/runtime/mcache.go

    }
    
    // dummy mspan that contains no free objects.
    var emptymspan mspan
    
    func allocmcache() *mcache {
    	var c *mcache
    	systemstack(func() {
    		lock(&mheap_.lock)
    		c = (*mcache)(mheap_.cachealloc.alloc())
    		c.flushGen.Store(mheap_.sweepgen)
    		unlock(&mheap_.lock)
    	})
    	for i := range c.alloc {
    		c.alloc[i] = &emptymspan
    	}
    	c.nextSample = nextSample()
    	return c
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  9. src/runtime/mgcpacer.go

    		// is based on a steady-state scannable heap size, we assume this means our
    		// heap is growing. Compute a new heap goal that takes our existing runway
    		// computed for scanWorkExpected and extrapolates it to maxScanWork, the worst-case
    		// scan work. This keeps our assist ratio stable if the heap continues to grow.
    		//
    		// The effect of this mechanism is that assists stay flat in the face of heap
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  10. src/internal/trace/gc.go

    					// Keep the first window.
    					goto keep
    				} else {
    					// Replace it with this window.
    					heap.Remove(&acc.wHeap, i)
    					break
    				}
    			}
    		}
    
    		heap.Push(&acc.wHeap, UtilWindow{time, mu})
    		if len(acc.wHeap) > acc.nWorst {
    			heap.Pop(&acc.wHeap)
    		}
    	keep:
    	}
    
    	if len(acc.wHeap) < acc.nWorst {
    		// We don't have N windows yet, so keep accumulating.
    		acc.bound = 1.0
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 26K bytes
    - Viewed (0)
Back to top