当你调用一个函数,实际上发生的是函数得到了自己的内存块,它的大小与它期望的数据类型相同。
When you call a function, what actually happens is that function gets its own chunk of memory that's identical in size to the data type that it expects.
正确的内存块对齐可以得到保证。
“可用块”是已释放的内存块。
显示分配的内存块和字节数。
为什么作为一个连续的内存块存储树?
分配程序库可能需要的由零填充的内存块。
Allocating blocks of zero-filled memory the library may need.
溢出是指数据被添加到分配给该缓冲区的内存块之外。
An overflow occurs when data is added to the buffer outside the block of memory allocated to the buffer.
分配程序不能将空闲空间拼合为更大的内存块。
所以你必须分配一个足够大的内存块来容纳数据。
So you have to allocate a block of memory large enough to hold the data.
clear_user函数被用于将用户空间的内存块清零。
The clear_user function is used to zero a block of memory in user space. This function takes a pointer in user space and a size to zero, which is defined in bytes.
还有,调用mmap和mfree比雕刻出一个已存在的内存块慢许多。
Also, invoking mmap and mfree is much slower than carving out an existing chunk of memory.
冗余内存在某个内存块故障时为系统提供一个故障转移的内存块。
Redundant memory provides the system with a failover memory bank when a memory bank fails.
这让应用程序能够访问更大的内存块,而不是许多小内存块,从而提高性能。
This improves performance by allowing the application to access the memory in larger single chunks, instead of many smaller chunks.
该方法释放您先前创建的内存块,并使得从分配程序例程返回的所有指针失效。
It frees every memory block you created earlier and invalidates all the Pointers returned from the allocator routines.
只是一些随机的四字节的内存块,在这里是可以使用的,但是我可以在那里放置东西。
It's just some random chunk of four bytes that happens to be available at this point in time, but I can put something there.
请注意,这两个成员具有相同的偏移量值,因此这两个成员可以定义相同的内存块。
Notice that both members have the same offset values, so the members can define the same piece of memory.
其实他们俩不属于哪个特定的对象,所以不会出现在为哪个特定对象分配的内存块里。
Actually they two do not belong to which specific target, won't go out to be distributive of which specific target now so in memory piece.
如果在堆的顶部分配的内存块不在缓存中,执行会在内存内容装入缓存的过程中出现延迟。
If you allocate a block of memory on the heap that is not already in the cache, execution will stall while the contents of that memory are brought into the cache.
当用户释放内存时,就会检查buddy块,查看其相邻的内存块是否也已经被释放。
When memory is freed by the user, the buddy block is checked to see if any of its contiguous neighbors have also been freed.
警告:如果你去做这件事,你最好确定你的内存块初始化,会让不同的子程序使用它之前。
WARNING: If you go about doing this, you better make sure you reinitialize that block of memory before going to let a different subroutine use it.
内存设备环境是一块用以显示的内存块,在复制内存图像到实际的显示设备前用来存储图像。
It can be used to prepare images in memory before copying them to the actual device surface of the compatible device.
这是十分有用的,例如,如果您想要显示在程序外部定义的内存块,那么就可以用到上述特性了。
This is useful, for example, if you would like to display blocks of memory defined outside your program.
好的,如果那个函数调用另一个函数,你再放一个托盘在上面,新的托盘代表,那个函数的内存块。
Well, if that function calls another function, you put another tray on, and so that new tray represents that function's chunk of memory.
依赖于大量很小的内存块,但是知道总数近似值的程序会发现构造一些很简单的分配器是很有用的。
Programs relying on large but approximately known numbers of very small chunks may find it profitable to build very simple allocators.
内存破坏发生在,当向有效数据段内的一个内存位置写数据却写到了你意图使用的内存块的边界之外。
Memory corruption happens when writing to a location lying inside the legal data segment but outside the boundaries of the memory block you intended to use.
最后,字符串类型是引用类型,因此每个字符串实例都引用一个附加的内存块,以存放实际的字符串数据。
Finally, the string type is a reference type, so every string instance refers to an additional block of memory to hold the actual string data.
所有垃圾收集算法所面临的问题是相同的 ――找出由分配器分配的,但是用户程序不可到达的内存块。
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.
在清单2中,该函数分配了包含一个Buffer的内存块,并初始化它的条目以指明它是一个空抽象缓冲区。
In Listing 2, the function allocates a piece of memory containing a buffer and initializes its entries to indicate an empty abstract buffer.
对于小于或等于512字节的内存块,AIXmalloc为malloc的实际后端功能提供更高效的前端。
When memory size is less than or equal to 512 bytes, AIX malloc provides a more efficient frontend to the actual backend functions of malloc.
对于小于或等于512字节的内存块,AIXmalloc为malloc的实际后端功能提供更高效的前端。
When memory size is less than or equal to 512 bytes, AIX malloc provides a more efficient frontend to the actual backend functions of malloc.
应用推荐