Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for stackcache_clear (0.24 sec)

  1. src/runtime/mcache.go

    // In some cases there is no way to simply release
    // resources, such as statistics, so donate them to
    // a different mcache (the recipient).
    func freemcache(c *mcache) {
    	systemstack(func() {
    		c.releaseAll()
    		stackcache_clear(c)
    
    		// NOTE(rsc,rlh): If gcworkbuffree comes back, we need to coordinate
    		// with the stealing of gcworkbufs during garbage collection to avoid
    		// a race where the workbuf is double-freed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. src/runtime/mstats.go

    //
    // The world must be stopped.
    //
    //go:nowritebarrier
    func flushmcache(i int) {
    	assertWorldStopped()
    
    	p := allp[i]
    	c := p.mcache
    	if c == nil {
    		return
    	}
    	c.releaseAll()
    	stackcache_clear(c)
    }
    
    // flushallmcaches flushes the mcaches of all Ps.
    //
    // The world must be stopped.
    //
    //go:nowritebarrier
    func flushallmcaches() {
    	assertWorldStopped()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  3. src/runtime/stack.go

    		stackpoolfree(x, order)
    		x = y
    		size -= fixedStack << order
    	}
    	unlock(&stackpool[order].item.mu)
    	c.stackcache[order].list = x
    	c.stackcache[order].size = size
    }
    
    //go:systemstack
    func stackcache_clear(c *mcache) {
    	if stackDebug >= 1 {
    		print("stackcache clear\n")
    	}
    	for order := uint8(0); order < _NumStackOrders; order++ {
    		lock(&stackpool[order].item.mu)
    		x := c.stackcache[order].list
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top