摘要 |
A method for memory de-allocation may include identifying, by a processing device, a first memory object to be de-allocated within a scope of a function, creating a private freelist associated with the function, the private freelist comprising a reference to the first memory object, performing, within the scope of the function, a plurality of iterations to de-allocate a plurality of memory objects, wherein each iteration comprises adding, to the private freelist, a reference to a memory object of the plurality of memory objects, and causing, by a processing device, a public freelist to reference the private freelist. |
主权项 |
1. A method comprising:
identifying, by a processing device, a first memory object to be de-allocated within a scope of a function; creating a private freelist associated with the function, the private freelist comprising a reference to the first memory object; performing, within the scope of the function, a plurality of iterations to de-allocate a plurality of memory objects, wherein each iteration comprises adding, to the private freelist, a reference to a memory object of the plurality of memory objects; and causing, by a processing device, a public freelist to reference the private freelist. |