Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Scavenge (0.14 sec)

  1. src/runtime/mgcscavenge.go

    		scavenger.sleep(workTime)
    	}
    }
    
    // scavenge scavenges nbytes worth of free pages, starting with the
    // highest address first. Successive calls continue from where it left
    // off until the heap is exhausted. force makes all memory available to
    // scavenge, ignoring huge page heuristics.
    //
    // Returns the amount of memory scavenged in bytes.
    //
    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/mheap.go

    		s = h.allocMSpanLocked()
    	}
    	unlock(&h.lock)
    
    HaveSpan:
    	// Decide if we need to scavenge in response to what we just allocated.
    	// Specifically, we track the maximum amount of memory to scavenge of all
    	// the alternatives below, assuming that the maximum satisfies *all*
    	// conditions we check (e.g. if we need to scavenge X to satisfy the
    	// memory limit and Y to satisfy heap-growth scavenging, and Y > X, then
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  3. src/runtime/mgc.go

    	// Reset assist time and background time stats.
    	//
    	// Do this now, instead of at the start of the next GC cycle, because
    	// these two may keep accumulating even if the GC is not active.
    	scavenge.assistTime.Store(0)
    	scavenge.backgroundTime.Store(0)
    
    	// Reset idle time stat.
    	sched.idleTime.Store(0)
    
    	if work.userForced {
    		memstats.numforcedgc++
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  4. src/runtime/mgcpacer.go

    // userForced indicates whether the current GC cycle was forced
    // by the application.
    func (c *gcControllerState) endCycle(now int64, procs int, userForced bool) {
    	// Record last heap goal for the scavenger.
    	// We'll be updating the heap goal soon.
    	gcController.lastHeapGoal = c.heapGoal()
    
    	// Compute the duration of time for which assists were turned on.
    	assistDuration := now - c.markStartTime
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
Back to top