首页> 外国专利> Method for detecting memory leak based on linux kernel

Method for detecting memory leak based on linux kernel

机译:基于Linux内核检测内存泄漏的方法

摘要

A method for detecting a memory leak based on Linux kernel, applied to an detection of the memory leak, comprises: reading a node, acquiring the return addresses of the allocation functions of each of the plurality of memory pages and the number of the memory pages thereof; releasing the return addresses of the allocation functions and the number of the memory pages counted by the node; reading the node again, acquiring the return address of each of the allocation functions and the number of the memory pages thereof; comparing the number in each case to calculate a difference value, if the difference value is a positive value and monotonically increases, it's determined that the memory leak occurs in the memory pages allocated correspondingly by the allocation functions. During the detection of the memory leak, the detection method consumes less memory without affecting the efficiency in allocating and releasing the memory.
机译:一种用于检测基于Linux内核的存储器泄漏的方法,应用于存储器泄漏的检测,包括:读取节点,获取多个存储器页中的每一个的分配功能的返回地址和存储器页面 它; 释放分配函数的返回地址和节点计数的内存页面的数量; 再次读取节点,获取每个分配功能的返回地址和其内存页面的数量; 比较每种情况下的数字来计算差值,如果差值是正值并单调地增加,则确定在通过分配功能相应地分配的存储器页中发生存储器泄漏。 在检测到存储器泄漏期间,检测方法消耗较少的存储器,而不会影响分配和释放存储器的效率。

著录项

  • 公开/公告号US11157389B1

    专利类型

  • 公开/公告日2021-10-26

    原文格式PDF

  • 申请/专利权人 AMLOGIC (SHANGHAI) CO. LTD.;

    申请/专利号US201816325175

  • 发明设计人 TAO ZENG;

    申请日2018-09-27

  • 分类号G06F11/36;G06F9/50;

  • 国家 US

  • 入库时间 2022-08-24 21:53:10

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号