Method and device for positioning slow leakage of buffer region

The invention discloses a method for positioning slow leakage of a buffer region. The method comprises the following steps: acquiring system time when Buffers in the buffer region are allocated, and storing the system time into corresponding Buffer structures; creating a detection task, and carrying...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: YANG DACHUAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a method for positioning slow leakage of a buffer region. The method comprises the following steps: acquiring system time when Buffers in the buffer region are allocated, and storing the system time into corresponding Buffer structures; creating a detection task, and carrying out periodic traversal detection on each allocated Buffer; and acquiring the lasting time of each allocated Buffer, if the lasting time is longer than a set overtime time, defining the Buffer as a leaking Buffer, and storing. The invention further provides a device for positioning the slow leakageof the buffer region. The method and the device have the beneficial effects that the lasting time of the allocated Buffer is automatically monitored so as to judge whether slow leakage exists, so thatthe Buffer in a slow leakage state can be effectively positioned within a short time by developers and testers, and the stability and reliability of the whole machine are improved. 本发明公开了种缓冲区缓慢泄漏的定位方法,所述方法包括:获取缓冲区Buffer被分配时的系