Method for tracking memory usages of a data processing system
    1.
    发明授权
    Method for tracking memory usages of a data processing system 有权
    跟踪数据处理系统的内存使用的方法

    公开(公告)号:US08949518B2

    公开(公告)日:2015-02-03

    申请号:US14095035

    申请日:2013-12-03

    Applicant: Apple Inc.

    Abstract: Techniques for tracking memory usages of a data processing system are described herein. According to one embodiment, a memory manager is to perform a first lookup operation in a memory allocation table to identify an allocation entry based on a handle representing a memory address of a memory block allocated to a client and to retrieve a trace entry pointer from the allocation entry. The memory manager is then to perform a second lookup operation in a memory trace table to identify a trace entry based on the trace entry pointer and to increment a memory allocation count of the trace entry. The memory allocation count is utilized to indicate a likelihood of the client causing a memory leak.

    Abstract translation: 本文描述了用于跟踪数据处理系统的存储器使用的技术。 根据一个实施例,存储器管理器将在存储器分配表中执行第一查找操作,以基于表示分配给客户端的存储器块的存储器地址的句柄来识别分配条目,并从存储器分配表中检索跟踪条目指针 分配条目。 然后,存储器管理器在存储器跟踪表中执行第二查找操作,以基于跟踪条目指针识别跟踪条目,并增加跟踪条目的存储器分配计数。 存储器分配计数用于指示客户端造成内存泄漏的可能性。

Patent Agency Ranking