如果程序没有把内存释放回系统,则称为内存泄露。
When a program does not release the memory back to the system, it is called a leak.
最后一个阶段是简单的清理,即将对象和其他元素从内存释放。
The final phase is simply cleanup, which frees the objects and other elements from memory.
因此他的结论是不应该将内存释放回一个全局的内存池,而是将内存保持为针对特定目而初始化的状态。
His conclusion was that instead of freeing the memory back to a global pool, he would have the memory remain initialized for its intended purpose.
如您所见,在这个分配程序中,内存的释放使用了一个非常简单的机制,在固定时间内完成内存释放。
As you can see, in this allocator, freeing memory is done in constant time, using a very simple mechanism.
通过指针映射集和故障模型,可以自动检测内存释放异常、内存泄露和空指针引用等动态内存故障,提高了测试效率。
Through pointer mapping sets and fault model, it can detect bad deallocation, memory leak and null pointer dereference faults automatically and increase the testing efficiency.
甚至在这个内存释放之前,namestr值就一就已经被变更,那也是为什么Purify报告一个MLK(内存渗漏)错误的原因。
Even before freeing the memory, the value of namestr has been changed, and that is why Purify reports an MLK (memory leak) error.
实例表明,该程序作为一个模型数据提取及模型数据处理平台,解决了海量图形数据存取时容易发生的速度慢、内存释放困难问题。
A case study shows that as a platform of model data reading and model data management, this program solves the problems of lowly speed reading and different to release of EMS memory .
释放非托管资源所占用的内存。
注意:内存可以分配,释放,也可以当数据库正在运行时在不同区域之间交换。
Note: Memory can be allocated, freed, and exchanged between different areas while the database is running.
当页面惟一时,它们可以被合并,从而释放内存,供其他应用程序使用。
And when pages are unique, they can be consolidated, which frees memory for use in other applications.
这样内存得到释放,而且当将应用集群的时候也会有所帮助。
This frees up memory, and will help when the time comes to cluster the application tier.
这可能导致攻击者可在释放内存再用前对其进行写操作,然后在用户电脑商运行任意代码。
This could have resulted in freed memory that an attacker could write to before it is reused, and then run arbitrary code on the victim s computer.
对于实现了析构函数释放非内存资源的对象来说,这是最常见的问题。
This is mostly a problem with objects that implement a destructor to free non-memory resources.
SDO 采用内部方式处理其所有内存分配和释放工作,并不要求使用用户代码。
SDO handles all its memory allocation and de-allocation internally, and does not require user code to be involved.
内存管理通常是由来自编码人员的请求处理的,以分配和释放内存块。
Memory management is usually handled by requests from the coder to allocate and release blocks of memory.
您可能会忘了跟踪所有指针(指向这些内存位置),并且某些内存段没有释放,还保持分配给该程序。
You might forget to keep track of all the pointers (pointing to these memory locations), and some of the memory segments are not freed and stay allocated to the program.
当您释放内存时,它就变成蓝色,这表明开始被分配后来被释放。
And when you free memory, it becomes blue, representing previously allocated but then freed memory.
许多程序都非常消耗内存—它们占用了大量的RAM,而且当其他程序需要的时候也不会释放内存空间。
Many programs are memory consumption - they occupy a large amount of ram, and when other procedures, when necessary, and will not release memory space.
对于共享内存区域,直到删除共享内存区域之后,才会释放其工作存储分页。
The working storage pages for shared memory regions are not released until the shared memory region is deleted.
结果是,即使内存在释放后立即被覆盖,并且新指向的值不同于预期值,也很难识别出新值是错误值。
The consequence is that, even if memory is overwritten immediately on freeing and the new pointed value differs from the expected one, the new value might be hard to recognize as erroneous.
避免在处理器中释放内存的最好方法是,标记或记录将要释放的对象,让程序不间断地检查是否有等待被释放的内存。
The best way to avoid freeing memory in a handler is to flag or record the objects to be freed and have the program check from time to time whether anything is waiting to be freed.
AIX分页替换守护进程一次扫描内存的一个分页,找出要回收的分页以释放内存。
The AIX page replacement daemons scan memory a page at a time to find pages to evict in order to free up memory.
任何对这个内存的访问从此以后都将是错误,因为这个内存由namestr指向的内存已经释放。
Any access to this memory thereafter should be an error, because the memory pointed to by namestr has been freed.
这个方法foo调用程序strdup,它分配内存,使用这个内存,然后释放它。
The method foo calls method strdup , which allocates memory, USES that memory, and then frees it.
这个方法main分配内存,调用foo,使用分配的内存,然后释放它并退出。
The method main allocates memory, calls foo , USES the allocated memory, and then frees it and exits.
如果应用程序的一个线程分配内存,而其他线程释放内存,那么poolallocation实际上是无效的。
Pool allocation does not work effectively if one thread of the application allocates memory and other thread frees the memory.
用特殊的系统调用(即对UNIX内核的请求)分配和释放内存并设置权限;通过一般的读写操作读写内存段中的数据。
Special system calls, or requests to the UNIX kernel, allocate and free the memory and set permissions; common read and write operations put and get data from the region.
实际上,内核本身的大部分都驻留在虚拟内存中,这样可以帮助释放内存段以供其他进程使用。
In fact, most of the kernel itself resides in virtual memory, which helps free up segments for other processes.
实际上,内核本身的大部分都驻留在虚拟内存中,这样可以帮助释放内存段以供其他进程使用。
In fact, most of the kernel itself resides in virtual memory, which helps free up segments for other processes.
应用推荐