On Thu, Jun 20, 2019 at 7:22 PM Chou Yan <yan.chou.str...@gmail.com> wrote: > > The describe 'release the physical memory' may not be rigorous. Because gc > remand the span,obj, or big obj to heap or central area, may not release the > physical memory. > "When the next GC starts, it sweeps all not-yet-swept spans (if any)." > maybe it is the sweeps termination phrase mean. > BTW, I look the doc and look up three time of stw. > sweep termination > > GC performs the mark phase. No objects may be > > // scanned until all Ps have enabled the write barrier, which is > // accomplished using STW. > > mark termination phases. > or "write barrier" accomplished during sweep termination?
The write barrier is enabled as sweep termination completes. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcV0vtmPZE%3D9jEUN6o9nfj%2BJ%2BoVEzc%3DphaUeXqjcoocZ2w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.