方法在分析内存泄漏的基础上,通过重新实现动态内存分配和释放函数,记录内存分配的确切位置并跟踪动态内存的使用情况。
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.
在锁住信号量到释放信号量之间,要仔细考虑执行的代码量、执行的操作类型、发出的函数调用和循环次数。
After securing the lock, remain aware of the amount of code executed, the type of operations performed, the function calls made, and the amount of looping until releasing the lock.
这个函数调用不需要释放SSLBIO。
This function call also takes away the need to free the SSL BIO.
这个函数最后将获取和释放执行控制台信号,并将下一条日志消息发送到控制台(在release_console_sem中执行)。
At the end of this function, a gratuitous acquisition and release of the console semaphore is performed that emits the next log message to the console (performed within release_console_sem).
tcp_close函数更新路由度量结构的三个变量,然后释放套接字持有的资源。
The tcp_close function updates three variables of the routing metrics structure, and then releases the resources held by the socket.
my_module_cleanup函数是在卸载这个模块时被调用的,它用来释放内存并清除这个模块的踪迹。
The my_module_cleanup function is called when the module is being unloaded and is used to free memory and generally remove traces of the module.
spin_unlock _ irqrestore函数释放自旋锁,并且(通过flags参数)恢复中断。
The spin_unlock_irqrestore function releases the spinlock and restores the interrupts (via the flags argument).
您也不必释放由transcode函数返回的内存,因为此时这是调用者的责任。
You also don't have to free up the memory returned by the transcode function, since it's now the responsibility of the caller.
错误的内存使用在使用内存分配和释放的函数不匹配时发生。
Incorrect memory use occurs when functions used for allocating and de-allocating memory do not match.
通过解除缓冲区的锁定并释放其内存,然后关闭记录、集合和数据库,来结束函数的运行。
Wrap up by unlocking the buffer and freeing its memory, closing the note, collection, and database.
对于实现了析构函数释放非内存资源的对象来说,这是最常见的问题。
This is mostly a problem with objects that implement a destructor to free non-memory resources.
有一些用户空间解决方案可以解决这个问题。例如为父类创建一个解构函数将直接释放子对象。
There are a few user space solutions to this problem, such as creating a destructor for the parent class that will release the child object directly.
这个函数释放一个打开文件。
直到函数调用彻底完成 时,活动记录使用的空间才会被释放以便重用(更多信息请参看后面的介绍)。
Only when the function call is completely finished is the space for the activation record released for reuse (more on this later).
在碰到退出函数时,当前的活动函数就会返回,并释放栈顶元素。
When an exit address is encountered, the current active function has returned and the top element on the stack is discarded.
获得(或创建)和释放(或销毁)关联设备的函数-正如我们在前几章看到的,你需要关联设备的句柄以便绘制。
Functions that get (or create) and release (or destroy) a device context as we saw in earlier chapters, you need a handle to a device context in order to draw.
清单3 中的函数释放链表中的所有内存块,然后释放由 newBuffer()分配的Buffer 。
The function in Listing 3 frees any memory blocks in the linked list, then frees the Buffer allocated by newBuffer().
首先,那在这里是不适用的,因为在这里我只写了一个函数,函数,这里没有,at,least,called,main,so,there’s,no,notion,一个叠一个的堆栈概念,堆栈释放的概念。
First, that's actually not applicable here because in this story there's only one function that I wrote main of one stack frame then another then another and then those being popped off.
释放全局解释器锁。锁必须提前创建。这个函数在编译时禁用线程支持的情况下不可用。
Release the global interpreter lock. The lock must have been created earlier. This function is not available when thread support is disabled at compile time.
当你需要释放大量查询语句的内存时,使用这个函数将非常有效。
However, this function can be useful when you want to free up memory between large queries.
可以检测内存泄漏、内存写溢出、释放野指针和内存管理函数的不匹配等问题。
The module can detect memory leak, write overflow, free wild pointer and mismatch using of memory functions of the executable files.
利用指针和动态分配函数实现程序运行中堆的自由空间的支配和释放。
The guide finger and functions of dynamic distribution are used to realize the government and release of free space piled in programs movement.
一旦你完成了上下文的使用,你就必须使用ImmReleaseContext函数来释放它。
Once you have finished using the context, you must release it using the ImmReleaseContext function.
利用川渝地区含硫气井H2S释放速率数据,根据其累积概率分布函数建立概率分布模型。
The probabilistic distribution model for the release rates of H2S in the sour gas wells of Sichuan and Chongqing areas was developed using the complementary cumulative distribution function.
利用川渝地区含硫气井H2S释放速率数据,根据其累积概率分布函数建立概率分布模型。
The probabilistic distribution model for the release rates of H2S in the sour gas wells of Sichuan and Chongqing areas was developed using the complementary cumulative distribution function.
应用推荐