一个好内存分配器需要均衡多个目标。
还使用了不同的内存分配器。
您可以提供您的任何自定义的内存分配器的青睐。
在生成用于调试的项目时,使用的是调试内存分配器。
When you build your project for debug, you are using the debug memory allocator.
本文记述该内存分配器的主要设计目标、算法及实现手法考量。
This article presents a description of some of the main design goals, algorithms, and implementation considerations for this allocator .
内存分配器必须的数据结构来组织关于内存的分配和释放内存块的信息使用。
The memory allocator must use some memory for data structures to organize information about blocks of memory that are allocated and freed.
这是由我用来运行这些C++程序的系统(主要是早期版本的SunOS和BSD)上的内存分配器的特性决定的。
This was due to characteristics of the memory allocators on the systems I was running on (mainly the then-current versions of SunOs and BSD ).
Linuxslab分配器使用了这种思想和其他一些思想来构建一个在空间和时间上都具有高效性的内存分配器。
The Linux slab allocator uses these ideas and others to build a memory allocator that is efficient in both space and time.
在 in_pcballoc 中,调用了内核的内存分配器函数,该函数将内存分配给Internet控制块。
Within in_pcballoc, the kernel's memory allocator function is called, which allocates memory to the Internet control block.
实时操作系统解决这个问题的方法是采用专用内存分配器(special-purposeal locators)。
Real-time systems have special-purpose allocators to deal with this problem. Heaps also becomefragmented, shown below
内存分配器必须给你一个16字节对齐块的空间,因为,在一般情况下,内存分配必须提供适当的对齐,内存可用于任何目的。
The memory allocator must give you a 16-byte aligned block of space, because, in general, memory allocation must provide suitable alignment so that the memory can be used for any purpose.
呃,除了从1.8.6到1.8.7的兼容性问题,tcmalloc——我们使用的内存分配器——在Snow Leopard上还无法正常工作。
Well, apart from the compatibility problems from 1.8.6 to 1.8.7, tcmalloc – the memory allocator we use – doesn't seem to work yet on snow leopard.
每一个new操作必须有相应的delete操作,否则您的程序就会泄漏内存,最终内存分配器(memory allocator)就会出故障,而您的程序就会崩溃。
Each new operation had to be balanced by a corresponding delete, or else your program would leak memory, and eventually the memory allocator would fail and your program would crash.
依赖于大量很小的内存块,但是知道总数近似值的程序会发现构造一些很简单的分配器是很有用的。
Programs relying on large but approximately known numbers of very small chunks may find it profitable to build very simple allocators.
所有垃圾收集算法所面临的问题是相同的 ――找出由分配器分配的,但是用户程序不可到达的内存块。
The problem faced by all garbage collection algorithms is the same -- identify blocks of memory that have been dispensed by the allocator, but are unreachable by the user program.
尽管如此,分配器应该提供一些方法探测由于改写内存,多次释放等等这样的错误导致的内存混乱。
However, allocators should provide some means for detecting corruption due to overwriting memory, multiple frees, and so on.
举个最奇怪的例子,一些早期版本的Unix分配器允许程序员realloc已经被释放了的内存。
For the oddest example, some early versions of Unix allocators allowed programmers to realloc memory that had already been freed.
把一个一般用途分配器也当作一般用途内存错误检测工具(像是Purify)使用看上去是不可能的。
It does not seem possible for a general-purpose allocator to also serve as general-purpose memory error testing tool such as Purify.
mempool_alloc用来分配对象;如果内存池分配器无法提供内存,那么就可以用预分配的池。
Mempool_alloc is for allocating objects; if the mempool allocator fails to provide memory, then the pre-allocation pool will be used.
克隆分配器概念的引入是为了对指针容器控制所存对象的内存(不是指针的内存)的方法进行规范化。
The Clone Allocator concept is introduced to formalize the way pointer containers control memory of the stored objects (and not the Pointers to the stored objects).
该内存我可以从我的许多项目在自己的分配器。
This memory I can take from my own allocator as in many projects.
该内存我可以从我的许多项目在自己的分配器。
This memory I can take from my own allocator as in many projects.
应用推荐