Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for shrinkstack (0.23 sec)

  1. src/runtime/mgcmark.go

    	p := getg().m.p.ptr()
    	p.scannedStackSize += uint64(scannedSize)
    	p.scannedStacks++
    
    	if isShrinkStackSafe(gp) {
    		// Shrink the stack if not much of it is being used.
    		shrinkstack(gp)
    	} else {
    		// Otherwise, shrink the stack at the next sync safe point.
    		gp.preemptShrink = true
    	}
    
    	var state stackScanState
    	state.stack = gp.stack
    
    	if stackTraceDebug {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
Back to top