diff options
Diffstat (limited to 'src/runtime/mheap.go')
-rw-r--r-- | src/runtime/mheap.go | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/runtime/mheap.go b/src/runtime/mheap.go index d99363d991..1c98afcfcc 100644 --- a/src/runtime/mheap.go +++ b/src/runtime/mheap.go @@ -449,16 +449,17 @@ type mspan struct { // if sweepgen == h->sweepgen + 3, the span was swept and then cached and is still cached // h->sweepgen is incremented by 2 after every GC - sweepgen uint32 - divMul uint32 // for divide by elemsize - allocCount uint16 // number of allocated objects - spanclass spanClass // size class and noscan (uint8) - state mSpanStateBox // mSpanInUse etc; accessed atomically (get/set methods) - needzero uint8 // needs to be zeroed before allocation - elemsize uintptr // computed from sizeclass or from npages - limit uintptr // end of data in span - speciallock mutex // guards specials list - specials *special // linked list of special records sorted by offset. + sweepgen uint32 + divMul uint32 // for divide by elemsize + allocCount uint16 // number of allocated objects + spanclass spanClass // size class and noscan (uint8) + state mSpanStateBox // mSpanInUse etc; accessed atomically (get/set methods) + needzero uint8 // needs to be zeroed before allocation + allocCountBeforeCache uint16 // a copy of allocCount that is stored just before this span is cached + elemsize uintptr // computed from sizeclass or from npages + limit uintptr // end of data in span + speciallock mutex // guards specials list + specials *special // linked list of special records sorted by offset. } func (s *mspan) base() uintptr { |