A method for incrementally unloading classes using a region-based garbage collector is described.
A garbage collector collects a generation of a collected heap in accordance with the train algorithm.