pLostBlock 指向该链表的最后一个内存块。
The pLostBlock points to the linked list's last memory block.
endPoint记录最后一个内存块中第一个空闲字节的偏移位置。
The endPoint records the first free byte's offset location into the last memory block.
startPoint记录第一个内存块中第一个字节的偏移位置。
The startPoint records the first byte's offset location into the first memory block.
它只要找到一个内存块,然后把代码里每一个重定位的地址加上起始地址即可。
It can now just find a block of memory and then add the starting space to each of the relocatable addresses inside the code.
在达到大约550MB之后,当测试程序试图memset一个内存块时,内核杀死它。
After reaching around 550mb, the test program was killed by the kernel when it tried to memset a block.
清单1中的代码将分配两个 512字节的内存块,然后指向第一个内存块的指针被设定为指向第二个内存块。
The code in Listing 1 allocates two 512-byte blocks of memory, and then the pointer to the first block is set to the second block.
当你调用一个函数,实际上发生的是函数得到了自己的内存块,它的大小与它期望的数据类型相同。
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.
另一种避免同步问题的方法是,分配一个很大的全局内存块,并将其划分为较小的槽位,其中每个槽位都可由一个线程用来进行日志记录。
Another way to avoid synchronization issues is to allocate a large chunk of global memory and break it into smaller slots, where each slot is to be used by one thread for logging.
最后,字符串类型是引用类型,因此每个字符串实例都引用一个附加的内存块,以存放实际的字符串数据。
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.
好的,如果那个函数调用另一个函数,你再放一个托盘在上面,新的托盘代表,那个函数的内存块。
Well, if that function calls another function, you put another tray on, and so that new tray represents that function's chunk of memory.
内存中数据库系统一个最值得注意的不同之处在于没有大数据块结构。
One of the most noticeable differences of an in-memory database system is the absence of large data block structures.
处理器可能会在将一个数据块交还给内存前对这块数据执行数十或数百次操作。
The processor might perform dozens or hundreds of operations on a chunk of data in the cache before relinquishing it to memory.
与此类似,作为获得监视的一部分,当进入一个同步块时,本地缓存失效,使之后的读操作直接进入主内存而不是本地缓存。
Similarly, as part of acquiring the monitor when entering a synchronized block, local caches are invalidated so that subsequent reads will go directly to main memory and not the local cache.
然而,模型只在内存中占用了非常小的一块地方:一个手机可以加载成千上万个模型。
The models, however, take up very little space in memory: a cell phone could hold thousands of them.
顾名思义,内存中数据库完全驻留在主存中,而不是磁盘上,这使得数据访问比传统的基于磁盘的数据块要快一个数量级。
As the name implies, an in-memory database resides entirely in main memory rather than on disk, making data access an order of magnitude faster than with conventional, disk-based databases.
您可以向Buffer引入一个附加参数,用以指定每个内存块的大小,并且可以在抽象缓冲区的初始化期间,将该参数设置为一个可取的值。
You can introduce an additional parameter into Buffer to specify each memory block's size, and you can set it to a preferred value during the initialization of an abstract buffer.
还有,调用mmap和mfree比雕刻出一个已存在的内存块慢许多。
Also, invoking mmap and mfree is much slower than carving out an existing chunk of memory.
在清单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.
最初可以使用内存块的一个空链表来创建一个抽象缓冲区。
You can initially create an abstract buffer with an empty linked list of memory block.
所以,如果一个字节序列可以是一个指向一块被分配的内存的指针,那么收集器就将其标记为正在被引用。
So, if a sequence of bytes could be a pointer to a piece of allocated memory, it marks it as being referenced.
一个进程分配内存时,它是这样进行的:首先,预定虚拟内存;然后,提交内存到该块中(这是实际使用的内存)。
When a process allocates memory it does so by first reserving virtual memory and then committing memory out of this chunk (this is the memory actually used).
嗯,如果你想调用一个函数,这就像把一个托盘放到另一个托盘上,托盘代表一块,函数可以使用的内存。
Well, if you want to call a function, it's like putting another tray on that stack of trays and that tray represents a chunk of memory that, that function can use.
结果,如果没有足够大的自由内存块能够满足请求的需要,则分配一个很大的对象就会失败。
As a result, the allocation of a sufficiently large object can fail if no free chunk of memory is large enough to satisfy the request.
一种会引起问题的情况就是正在执行的系统对可用内存有严格限制,并且遇到了一个大得无法处理的块。
The one situation where a problem could arise is when an implementing system has a hard limit on available memory, and encounters a block too large to process.
内存映射文件是把一块内存连接到一个文件的操作系统特性。
Memory-mapped files are an operating system feature that links a block of memory to a file.
如果该分页没有经过修改,那么分页替换守护进程可以简单地将物理内存块标记为空闲,这样一来,就可以将该物理内存块重用于另一个分页。
If the page is unmodified, the page replacement daemon can simply mark the physical memory block as free, and the physical memory block can then be re-used for another page.
第一个分配程序是通用分配,可以满足针对任何数量的连续内存块的请求。
The first is a general-purpose allocation and can serve requests for any number of contiguous chunks.
探路者号上有一个“数据总线”,可以理解为一块共享内存,用于不同组件之间传递信息。
Pathfinder contained an "information bus", which you can think of as a Shared memory area used for passing information between different components of the spacecraft.
碎片是一个实际的物理内存块,它存储分区的内容。
A shard is a real, physical chunk of memory that stores the contents of a partition.
碎片是一个实际的物理内存块,它存储分区的内容。
A shard is a real, physical chunk of memory that stores the contents of a partition.
应用推荐