Lines Matching refs:Span
76 // sweeps one span
83 // in the middle of sweep thus leaving the span in an inconsistent state for next GC
98 // swept this span, but in that case the sweep
101 print("runtime: bad span s.state=", s.state, " s.sweepgen=", s.sweepgen, " sweepgen=", sg, "\n")
102 throw("non in-use span in unswept list")
111 // Span is still in-use, so this returned no
112 // pages to the heap and the span needs to
135 // Returns only when span s has been swept.
139 // Otherwise when this function returns the span can become unswept again
150 // The caller must be sure that the span is a MSpanInUse span.
163 // Returns true if the span was returned to heap.
177 throw("MSpan_Sweep: bad span state")
278 // Count the number of free objects in this span.
293 s.freeindex = 0 // reset allocation index to start of span.
305 // But we need to set it before we make the span available for allocation
307 // span is already swept if available for allocation.
309 // The span must be in our exclusive ownership until we update sweepgen,
313 throw("MSpan_Sweep: bad span state after sweep")
317 // to go so release the span.
326 // Free large span to heap
343 s.limit = 0 // prevent mlookup from finding this span
353 // The span has been swept and is still in-use, so put
363 // deductSweepCredit deducts sweep credit for allocating a span of
364 // size spanBytes. This must be performed *before* the span is
371 // bytes of the ultimately allocated span will be available for object
373 // turns out not to be the case once the span is allocated.
387 // Account for this span allocation.
401 // just-allocated span are not available for object allocation. This