Method, system, apparatus and computer program product for memory management.
In one embodiment the method includes: configuring a first memory including allocating
at least one node; and defining a status including: defining a class list, wherein
each node is capable of storing a class instance corresponding to a class selected
from said class list; and defining a node list to identify an allocation status
of each node including an available status, and an allocated status; receiving
an allocation request including a class identifier, responding to the allocation
request with a node identifier representing said available node and updating the
available node allocation status; otherwise responding with a failure indication;
and receiving a deallocation request and responding to said deallocation request
by updating the allocation status to the available status. A system, router, computer
program and computer program product are also disclosed.