Skip to content

Instantly share code, notes, and snippets.

@Anshuman-02905
Created September 24, 2025 04:40
Show Gist options
  • Select an option

  • Save Anshuman-02905/65ae38b735e811ca75e621128f477577 to your computer and use it in GitHub Desktop.

Select an option

Save Anshuman-02905/65ae38b735e811ca75e621128f477577 to your computer and use it in GitHub Desktop.
Field Purpose
lock Mutex used for protecting span and memory operations.
free mTreap of non-scavenged spans, i.e., available memory that hasn’t been returned to the OS.
scav mTreap of free and scavenged spans, i.e., memory ready to be reused or returned to the OS.
sweepgen Tracks the current sweep generation for the garbage collector.
sweepdone Indicates whether all spans in a generation have been swept.
sweepers Number of active sweepone calls running concurrently.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment