Skip to content

Instantly share code, notes, and snippets.

@iskakaushik
Created October 5, 2017 03:42
Show Gist options
  • Save iskakaushik/d3f05209146ff97e7ed86f935a7aa9c3 to your computer and use it in GitHub Desktop.
Save iskakaushik/d3f05209146ff97e7ed86f935a7aa9c3 to your computer and use it in GitHub Desktop.
class Run {
Bin bin; // bins are further down in our discussion
RegionSize regionSize; // the region size for this run.
List<Page> pages; // pages that are a part of this run.
int numFreeRegions;
int totalNumRegions = pages.size() / regionSize;
boolean freeRegions[totalNumRegions]; // initially all set to true
// more metadata to quickly identify the first available region
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment