Home | History | Annotate | Download | only in runtime

Lines Matching refs:Span

75 // sweeps one span
83 // in the middle of sweep thus leaving the span in an inconsistent state for next GC
101 // swept this span, but in that case the sweep
104 print("runtime: bad span s.state=", s.state, " s.sweepgen=", s.sweepgen, " sweepgen=", sg, "\n")
105 throw("non in-use span in unswept list")
114 // Span is still in-use, so this returned no
115 // pages to the heap and the span needs to
147 // Returns only when span s has been swept.
151 // Otherwise when this function returns the span can become unswept again
162 // The caller must be sure that the span is a MSpanInUse span.
175 // Returns true if the span was returned to heap.
189 throw("MSpan_Sweep: bad span state")
289 // Count the number of free objects in this span.
303 s.freeindex = 0 // reset allocation index to start of span.
318 // But we need to set it before we make the span available for allocation
320 // span is already swept if available for allocation.
322 // The span must be in our exclusive ownership until we update sweepgen,
326 throw("MSpan_Sweep: bad span state after sweep")
330 // to go so release the span.
339 // Free large span to heap
356 s.limit = 0 // prevent mlookup from finding this span
366 // The span has been swept and is still in-use, so put
373 // deductSweepCredit deducts sweep credit for allocating a span of
374 // size spanBytes. This must be performed *before* the span is
381 // bytes of the ultimately allocated span will be available for object