Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Scavenged (0.23 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

    		}
    		scavenge.assistTime.Add(now - start)
    	}
    
    	// Initialize the span.
    	h.initSpan(s, typ, spanclass, base, npages)
    
    	// Commit and account for any scavenged memory that the span now owns.
    	nbytes := npages * pageSize
    	if scav != 0 {
    		// sysUsed all the pages that are actually available
    		// in the span since some of them might be scavenged.
    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/mgcpacer.go

    	// only heap object memory. Intuitively, the way we convert from one to the other is to
    	// subtract everything from memoryLimit that both contributes to the memory limit (so,
    	// ignore scavenged memory) and doesn't contain heap objects. This isn't quite what
    	// lines up with reality, but it's a good starting point.
    	//
    	// In practice this computation looks like the following:
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  4. 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)
Back to top