首页> 外国专利> 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.
机译:描述了在并发环境中以低性能开销安全地释放内存。一种示例方法包括为全局存储块中的每个子块创建参考计数,并且每个全局存储块包括基于各自的分配时间老化的多个子块。当线程操作数据项的集合并第一次访问第一子块时,第一子块的参考计数增加。延迟更新第一子块和第二子块的参考计数。随后,按照其使用期限的顺序扫描子块,直到遇到具有非零参考计数的子块。因此,安全地以低性能开销释放其相应参考计数等于零的一个或多个子块。

著录项

  • 公开/公告号US9223690B2

    专利类型

  • 公开/公告日2015-12-29

    原文格式PDF

  • 申请/专利权人 SYBASE INC.;

    申请/专利号US201314046749

  • 发明设计人 VIVEK KANDIYANALLUR;

    申请日2013-10-04

  • 分类号G06F12/02;G06F12/12;

  • 国家 US

  • 入库时间 2022-08-21 14:28:36

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号