GC Metric for Pointer Count?

21 views
Skip to first unread message

Andrew Consroe

unread,
Aug 3, 2026, 8:22:59 PM (12 hours ago) Aug 3
to golang-nuts
Reading an article on the design of the Green Tea collector the other day got me thinking about GC design more generally. One metric that could go into a GC design besides the total heap size is the total number of pointers into the heap. Because Go uses a pointer bitmap, I think this metric should be fairly easy (in theory) to access. I'd be interested to see what the ratio between heap size and pointer count is for various programs in production.
Reply all
Reply to author
Forward
0 new messages