Pool

Undocumented in source.

Members

Functions

Dtor
void Dtor()
Undocumented in source. Be warned that the author may not have intended to support it.
Invariant
void Invariant()
Undocumented in source. Be warned that the author may not have intended to support it.
allocPages
size_t allocPages(size_t n)

Allocate n pages from Pool. Returns OPFAIL on failure.

extendPages
size_t extendPages(size_t n)

Extend Pool by n pages. Returns OPFAIL on failure.

freePages
void freePages(size_t pagenum, size_t npages)

Free npages pages starting with pagenum.

initialize
void initialize(size_t npages)
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
int opCmp(Pool* p2)

Used for sorting pooltable[]

Variables

baseAddr
byte* baseAddr;
Undocumented in source.
bin
Bins bin;
Undocumented in source.
finals
GCBits finals;
Undocumented in source.
freebits
GCBits freebits;
Undocumented in source.
i
size_t i;
Undocumented in source.
mark
GCBits mark;
Undocumented in source.
ncommitted
size_t ncommitted;
Undocumented in source.
noscan
GCBits noscan;
Undocumented in source.
npages
size_t npages;
Undocumented in source.
pagetable
ubyte* pagetable;
Undocumented in source.
scan
GCBits scan;
Undocumented in source.
topAddr
byte* topAddr;
Undocumented in source.

Meta