]> Cypherpunks repositories - gostls13.git/commit
runtime: record in-use spans in a page-indexed bitmap
authorAustin Clements <austin@google.com>
Wed, 26 Sep 2018 20:32:52 +0000 (16:32 -0400)
committerAustin Clements <austin@google.com>
Thu, 15 Nov 2018 19:27:06 +0000 (19:27 +0000)
commit69e666e4f758cb5431e94aa90dc01a72ab806080
tree3f33128144a076ccbe84ed5c41f9adbe1ddd500f
parente500ffd88cb906014320607c6a03a5fd05ee84cf
runtime: record in-use spans in a page-indexed bitmap

This adds a bitmap indexed by page number that marks the starts of
in-use spans. This will be used to quickly find in-use spans with no
marked objects for sweeping.

For #18155.

Change-Id: Icee56f029cde502447193e136fa54a74c74326dd
Reviewed-on: https://go-review.googlesource.com/c/138957
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/mheap.go