方法在分析内存泄漏的基础上,通过重新实现动态内存分配和释放函数,记录内存分配的确切位置并跟踪动态内存的使用情况。
Based on the analysis of memory leak, the method overloads the allocation function and overrides the free function to store the allocation spot and trace the dynamic memory allocation.
具体地说,这里讨论连接、读、写和释放连接等数据库函数。
In particular, database functions such as connect, read, write, and release connection are covered here.
spin_unlock _ irqrestore函数释放自旋锁,并且(通过flags参数)恢复中断。
The spin_unlock_irqrestore function releases the spinlock and restores the interrupts (via the flags argument).
应用推荐