aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mheap.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/mheap.go')
-rw-r--r--src/runtime/mheap.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/runtime/mheap.go b/src/runtime/mheap.go
index 4cf08e46a7..09dc0d51ad 100644
--- a/src/runtime/mheap.go
+++ b/src/runtime/mheap.go
@@ -195,6 +195,13 @@ type mspan struct {
// helps performance.
nelems uintptr // number of object in the span.
+ // startindex is the object index where the owner G started allocating in this span.
+ //
+ // This is used in conjunction with nextUsedSpan to implement ROC checkpoints and recycles.
+ startindex uintptr
+ // nextUsedSpan links together all spans that have the same span class and owner G.
+ nextUsedSpan *mspan
+
// Cache of the allocBits at freeindex. allocCache is shifted
// such that the lowest bit corresponds to the bit freeindex.
// allocCache holds the complement of allocBits, thus allowing