Program dynamic memory leak-proof detection and tracking method based on head and tail flag bits

The invention discloses a head and tail flag bit-based program dynamic memory leak-proof detection and tracking method, which comprises the following steps of: defining additional information for managing a memory, and inserting the additional information into the head and the tail of a memory block...

Full description

Saved in:
Bibliographic Details
Main Author GUO YUANHONG
Format Patent
LanguageChinese
English
Published 14.05.2024
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:The invention discloses a head and tail flag bit-based program dynamic memory leak-proof detection and tracking method, which comprises the following steps of: defining additional information for managing a memory, and inserting the additional information into the head and the tail of a memory block; recording an application position of the memory by using the additional information; defining a global linked list, taking the head information of the memory block as a linked list node, and storing the head information in the global linked list; detecting whether the memory is leaked or not and whether the memory is wrongly covered and used or not through process control of applying for the memory and releasing the memory in the memory block; memory detection is carried out when the program exits, and the memory leak position is detected. The method is suitable for a software development process that a developer needs to manually and dynamically manage a program language of a memory through codes, is suitable fo
Bibliography:Application Number: CN202311703081