span 263 src/cmd/ld/lib.h void span(void); span 445 src/pkg/runtime/malloc.h void runtime·MSpan_Init(MSpan *span, PageID start, uintptr npages); span 446 src/pkg/runtime/malloc.h void runtime·MSpan_EnsureSwept(MSpan *span); span 447 src/pkg/runtime/malloc.h bool runtime·MSpan_Sweep(MSpan *span); span 454 src/pkg/runtime/malloc.h void runtime·MSpanList_Insert(MSpan *list, MSpan *span); span 455 src/pkg/runtime/malloc.h void runtime·MSpanList_InsertBack(MSpan *list, MSpan *span); span 456 src/pkg/runtime/malloc.h void runtime·MSpanList_Remove(MSpan *span); // from whatever list it is in span 588 src/pkg/runtime/malloc.h void runtime·freeallspecials(MSpan *span, void *p, uintptr size); span 566 src/pkg/runtime/mheap.c runtime·MSpan_Init(MSpan *span, PageID start, uintptr npages) span 568 src/pkg/runtime/mheap.c span->next = nil; span 569 src/pkg/runtime/mheap.c span->prev = nil; span 570 src/pkg/runtime/mheap.c span->start = start; span 571 src/pkg/runtime/mheap.c span->npages = npages; span 572 src/pkg/runtime/mheap.c span->freelist = nil; span 573 src/pkg/runtime/mheap.c span->ref = 0; span 574 src/pkg/runtime/mheap.c span->sizeclass = 0; span 575 src/pkg/runtime/mheap.c span->incache = false; span 576 src/pkg/runtime/mheap.c span->elemsize = 0; span 577 src/pkg/runtime/mheap.c span->state = MSpanDead; span 578 src/pkg/runtime/mheap.c span->unusedsince = 0; span 579 src/pkg/runtime/mheap.c span->npreleased = 0; span 580 src/pkg/runtime/mheap.c span->types.compression = MTypes_Empty; span 581 src/pkg/runtime/mheap.c span->specialLock.key = 0; span 582 src/pkg/runtime/mheap.c span->specials = nil; span 583 src/pkg/runtime/mheap.c span->needzero = 0; span 584 src/pkg/runtime/mheap.c span->freebuf = nil; span 597 src/pkg/runtime/mheap.c runtime·MSpanList_Remove(MSpan *span) span 599 src/pkg/runtime/mheap.c if(span->prev == nil && span->next == nil) span 601 src/pkg/runtime/mheap.c span->prev->next = span->next; span 602 src/pkg/runtime/mheap.c span->next->prev = span->prev; span 603 src/pkg/runtime/mheap.c span->prev = nil; span 604 src/pkg/runtime/mheap.c span->next = nil; span 614 src/pkg/runtime/mheap.c runtime·MSpanList_Insert(MSpan *list, MSpan *span) span 616 src/pkg/runtime/mheap.c if(span->next != nil || span->prev != nil) { span 617 src/pkg/runtime/mheap.c runtime·printf("failed MSpanList_Insert %p %p %p\n", span, span->next, span->prev); span 620 src/pkg/runtime/mheap.c span->next = list->next; span 621 src/pkg/runtime/mheap.c span->prev = list; span 622 src/pkg/runtime/mheap.c span->next->prev = span; span 623 src/pkg/runtime/mheap.c span->prev->next = span; span 627 src/pkg/runtime/mheap.c runtime·MSpanList_InsertBack(MSpan *list, MSpan *span) span 629 src/pkg/runtime/mheap.c if(span->next != nil || span->prev != nil) { span 630 src/pkg/runtime/mheap.c runtime·printf("failed MSpanList_Insert %p %p %p\n", span, span->next, span->prev); span 633 src/pkg/runtime/mheap.c span->next = list; span 634 src/pkg/runtime/mheap.c span->prev = list->prev; span 635 src/pkg/runtime/mheap.c span->next->prev = span; span 636 src/pkg/runtime/mheap.c span->prev->next = span; span 648 src/pkg/runtime/mheap.c MSpan *span; span 653 src/pkg/runtime/mheap.c span = runtime·MHeap_LookupMaybe(&runtime·mheap, p); span 654 src/pkg/runtime/mheap.c if(span == nil) span 660 src/pkg/runtime/mheap.c runtime·MSpan_EnsureSwept(span); span 662 src/pkg/runtime/mheap.c offset = (uintptr)p - (span->start << PageShift); span 665 src/pkg/runtime/mheap.c runtime·lock(&span->specialLock); span 668 src/pkg/runtime/mheap.c t = &span->specials; span 671 src/pkg/runtime/mheap.c runtime·unlock(&span->specialLock); span 683 src/pkg/runtime/mheap.c runtime·unlock(&span->specialLock); span 694 src/pkg/runtime/mheap.c MSpan *span; span 698 src/pkg/runtime/mheap.c span = runtime·MHeap_LookupMaybe(&runtime·mheap, p); span 699 src/pkg/runtime/mheap.c if(span == nil) span 705 src/pkg/runtime/mheap.c runtime·MSpan_EnsureSwept(span); span 707 src/pkg/runtime/mheap.c offset = (uintptr)p - (span->start << PageShift); span 709 src/pkg/runtime/mheap.c runtime·lock(&span->specialLock); span 710 src/pkg/runtime/mheap.c t = &span->specials; span 716 src/pkg/runtime/mheap.c runtime·unlock(&span->specialLock); span 722 src/pkg/runtime/mheap.c runtime·unlock(&span->specialLock); span 812 src/pkg/runtime/mheap.c runtime·freeallspecials(MSpan *span, void *p, uintptr size) span 817 src/pkg/runtime/mheap.c if(span->sweepgen != runtime·mheap.sweepgen) span 822 src/pkg/runtime/mheap.c offset = (uintptr)p - (span->start << PageShift); span 823 src/pkg/runtime/mheap.c runtime·lock(&span->specialLock); span 824 src/pkg/runtime/mheap.c t = &span->specials; span 835 src/pkg/runtime/mheap.c runtime·unlock(&span->specialLock); span 884 src/pkg/runtime/stack.c MSpan *span; span 915 src/pkg/runtime/stack.c span = runtime·MHeap_LookupMaybe(&runtime·mheap, oldstk); span 916 src/pkg/runtime/stack.c if(span == nil) span 918 src/pkg/runtime/stack.c if(span->elemsize != oldsize) span 920 src/pkg/runtime/stack.c if((uintptr)oldstk != span->start << PageShift) span 944 src/pkg/runtime/stack.c runtime·MSpan_EnsureSwept(span); span 945 src/pkg/runtime/stack.c runtime·MHeap_SplitSpan(&runtime·mheap, span);