首页>
外国专利>
Freeing memory safely with low performance overhead in a concurrent environment
Freeing memory safely with low performance overhead in a concurrent environment
展开▼
机译:在并发环境中以低性能开销安全地释放内存
展开▼
页面导航
摘要
著录项
相似文献
摘要
Freeing memory safely with low performance overhead in a concurrent environment is described. An example method includes creating a reference count for each sub block in a global memory block, and each global memory block includes a plurality of sub blocks aged based on respective allocation time. A reference count for a first sub block is incremented when a thread operates a collection of data items and accesses the first sub block for a first time. Reference counts for the first sub block and a second sub block are lazily updated. Subsequently, the sub blocks are scanned through in the order of their age until a sub block with a non-zero reference count is encountered. Accordingly, one or more sub blocks whose corresponding reference counts are equal to zero are freed safely and with low performance overhead.
展开▼