Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for gcworkbuffree (0.08 sec)

  1. src/runtime/mcache.go

    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.
    		// gcworkbuffree(c.gcworkbuf)
    
    		lock(&mheap_.lock)
    		mheap_.cachealloc.free(unsafe.Pointer(c))
    		unlock(&mheap_.lock)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10K bytes
    - Viewed (0)
Back to top