KJS::Collector Class Reference
Garbage collector. More...
#include <collector.h>
Static Public Methods | |
void * | allocate (size_t s) |
Register an object with the collector. | |
bool | collect () |
Run the garbage collection. |
Detailed Description
Garbage collector.
Definition at line 59 of file collector.h.
Member Function Documentation
|
Register an object with the collector. The following assumptions are made:
Definition at line 75 of file collector.cpp. References collect(). |
|
Run the garbage collection. This involves calling the delete operator on each object and freeing the used memory. Definition at line 140 of file collector.cpp. References KJS::ValueImp::_flags, KJS::ValueImp::mark(), KStdAccel::next(), KJS::ValueImp::refcount, and KJS::ValueImp::~ValueImp(). Referenced by allocate(). |
The documentation for this class was generated from the following files: