Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for gcAssistAlloc (0.16 sec)

  1. src/runtime/mgcmark.go

    				}
    			}
    			unlock(&s.speciallock)
    		}
    	}
    }
    
    // gcAssistAlloc performs GC work to make gp's assist debt positive.
    // gp must be the calling user goroutine.
    //
    // This must be called with preemption enabled.
    func gcAssistAlloc(gp *g) {
    	// Don't assist in non-preemptible contexts. These are
    	// generally fragile and won't allow the assist to block.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  2. src/runtime/malloc.go

    		if assistG.gcAssistBytes < 0 {
    			// This G is in debt. Assist the GC to correct
    			// this before allocating. This must happen
    			// before disabling preemption.
    			gcAssistAlloc(assistG)
    		}
    	}
    	return assistG
    }
    
    // memclrNoHeapPointersChunked repeatedly calls memclrNoHeapPointers
    // on chunks of the buffer to be zeroed, with opportunities for preemption
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
Back to top