Skip to content

Instantly share code, notes, and snippets.

@iskakaushik
Created October 5, 2017 03:39
Show Gist options
  • Save iskakaushik/1eb81a52fc82d2710e4b34b453870780 to your computer and use it in GitHub Desktop.
Save iskakaushik/1eb81a52fc82d2710e4b34b453870780 to your computer and use it in GitHub Desktop.
class Arena {
List<Thread> threads; // Threads that this arena is associated with
List<Chunk> chunks; // Chunks that this arena manages
Lock lock; // guard accesses to various things in this arena.
RBTree<Run> runsAvailClean; // let's talk about runs in a little bit.
// clean vs dirty = free zeroed data (calloc) vs free dirty data (malloc).
RBTree<Run> runsAvailDirty;
List<Bin> bins; // we will look at Bins soon.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment