Suppose there is a pointer memoryArea pointing to a memory location of 10 bytes.
假设有一个指针memoryArea,它指向一个10字节的内存位置。
Relevant theories as suppression of numerical oscillating, general ICCG pointer memory addressing, etc. are studied.
对数值振荡的抑制、通用ICCG指针存储寻址等相关理论进行了研究。
It's a pointer to this chunk of memory.
它是指向这块内存的指针。
This will save the old stack pointer and allocate stack memory atomically.
这会保存原来的堆栈指针,并自动分配堆栈内存。
If there is no root or a pointer pointing to any part of the list then your data is lost in memory.
如果既没有根也没有指针指向链表,那么你的数据就丢失在内存中了。
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.
清单1中的代码将分配两个 512字节的内存块,然后指向第一个内存块的指针被设定为指向第二个内存块。
Conversely, if your program has a fault (for example, using a bad pointer) at some location in memory, you can look for the source line that is closest to the memory address.
相反,如果您的程序在内存中某个位置存在错误(例如,使用了一个错误指针),那么可以查找最接近该内存地址的源代码行。
The code shown in Listing 1 shows both a memory leak and a dangling pointer.
显示在列表1中的代码展示了一个内存渗漏和一个不断摆动的指针。
Internally the data referenced by the pointer is copied into dynamically allocated memory.
在内部,相关数据通过指针被拷贝到动态分贝的内存上。
This is in contrast with conservative GC systems which requires you to guess whether some piece of memory contains an object pointer or just some random data that resembles an object pointer.
这和需要你猜测某个内存片包含对象指针和一些类似对象指针的随即数据的老式GC系统有鲜明的对比。
A primary contributor to the complexity of memory management is aliasing: having more than one copy of a pointer or reference to the same block of memory or object.
内存管理复杂性的主要原因是别名使用:同一块内存或对象具有多个指针或引用。
Since the SPE does not have direct access to main memory, you cannot directly dereference this as a pointer.
由于SPE不能直接访问主存,所以无法直接将其作为一个指针废弃。
If we don't need to do a GC, allocation is 1 moving a pointer forward and 2 clearing the memory for the new object.
如果我们不需要进行GC,分配就是1将指针前移2为新对象清除内存。
Some types of memory access errors (like using a NULL pointer) cause a program to crash outright.
有些类型的内存访问错误 (比如使用一个NULL指示器) 将会导致一个程序完全崩溃。
"The future" or not, it's getting a bit silly for GUI application developers to perpetually be one bad pointer dereference away from scribbling all over their application's memory.
不管“未来”到达与否,开发者为了一个损坏的指针不断的遍历内存,多少是有些愚蠢的事情了。
What kinds of pointer operations cause memory corruption!
导致内存破坏的指针操作类型。
The virtual memory area (VMA) pointer needs to be added in as the first parameter followed by the usual four parameters (start, end, size, and protection flags).
虚拟内存区域(VMA)指针要作为第一个参数,然后是四个常用的参数(start,end,size和protection标记)。
Where exactly does namestr get written with another address value, and thereby lose the last pointer to memory allocated in main(), causing the leak?
在什么地方namestr与其它地址数值一起被编写,从而丢失分配在main() 中的最后一个内存指针,最终导致渗漏吗?
The next line, C3, takes the pointer in eax and stores it back into the instance reference at memory location 049388C8.
下一行代码,C3,获取 eax中的指针并将其存储回内存位置为 049388C8的实例引用。
In main, after returning from foo , namestr is actually a dangling pointer, because foo has freed that memory before returning.
在main中,当从foo返回后,namestr实际上时一个摆动的指针,因为foo已经在返回前释放了那个内存。
The earlier example was watching the memory that held the namestr pointer itself; therefore, the address of the watched area is given by &namestr.
先前的例子是关注支持namestr指针本身的内存;因此这个被关注区域是由 &namestr 提供的。
Then, when they pass the pointer back via free , we simply back up a few memory bytes to find this structure again.
然后,当通过free将该指针传递回来时,我们只需要倒退几个内存字节就可以再次找到这个结构。
When strdup is called in foo , the namestr variable value is overwritten, thereby losing the pointer to the memory allocated in main , and that causes the leak.
当strdup在foo中被调用,这个namestr变量值就会被覆写,从而丢失main中内存分配的指针,导致渗漏。
The only thing we have to do to free memory is to take the pointer we're given, back up sizeof (struct mem_control_block) bytes, and mark it as available. Here is the code for that.
为了释放内存,我们必须要做的惟一一件事情就是,获得我们给出的指针,回退size of (struct mem_control_block)个字节,并将其标记为可用的。
For example, if t is the pool created using the pool interface and m is a pointer allocated from t, then t.free (m) returns the memory to t (it's added to t's free list).
例如,如果t是使用pool接口来创建的池,并且m是从t分配的指针,则t. f ree (m)将把内存返回给t(将其添加到t的空闲内存列表)。
Listing 1. Code with memory leak and dangling pointer (mem_errors.c).
列表1 .带有一个内存渗漏和一个不断摆动的指针的代码(mem_errors. c)。
To avoid dangling Pointers (the dangerous situation where a block of memory is freed but a pointer still references it), you must delete the object only after the last reference is released.
为了避免悬空指针(一种危险的情况,即一块内存已经被释放了,而一个指针还在引用它),必须在最后的引用释放之后才删除对象。
The main SPE program will receive an effective address pointer to a struct containing the size and pointer of a string in main memory.
主s PE程序将接收到包含字符串大小和指针的struct的有效地址指针。
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.
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.
clear_user函数被用于将用户空间的内存块清零。
应用推荐