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.
当你调用一个函数,实际上发生的是函数得到了自己的内存块,它的大小与它期望的数据类型相同。
It may use too much memory if you compile and run the GNU debugger, probably because it tends to open a window whenever you step into a program call.
如果您编译运行gnu调试器,可能会使用太多内存,或许是因为您进入一个程序呼叫时,它都试图打开一个窗口。
A simple, but effective performance improvement is to carry allocated memory from one call to the next.
一种简单而有效的性能提升方法是将分配的内存从一次调用传递到下一次调用。
Once you have made the changes to the XML document in memory, a single function call writes it back out to the configuration file.
在对内存中的XML文档完成了相应的修改之后,只需使用一个函数调用就可以将其写回到对应的配置文件中。
The language instruction tells the computer to find a place in its memory, which the programmer wants to call X and to put 2 in there.
这个语言指令告诉计算机:在内存中,为那个被程序员命名为X的变量寻找一个地址,并把数值2存储进去。
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.
嗯,如果你想调用一个函数,这就像把一个托盘放到另一个托盘上,托盘代表一块,函数可以使用的内存。
The first DB2.OPEN_LOG call builds a linked list hash table as shown in Figure 1 from the logging tokens kept in the Shared memory.
第一个DB 2 . OPEN_LOG调用的功能是从共享内存中保存的日志标记来构建一个如图1所示的链表散列表。
For example, the code must call certain runtime routines in the JVM runtime to perform specific actions, such as looking up an unresolved method or allocating memory.
例如,代码必须调用JVM运行时中的某些运行时例程来执行特定操作,如查找未解析的方法或分配内存。
Each additional recursive call takes up memory, and eventually will slow down the browser.
每个额外的递归调用都会占用更多的内存,从而减慢浏览器的运行。
You'd open a file; you could call read, and it could read an entire file for you into memory if you like.
打开文件、调用读取操作、将整个文件读入内存,都是可以的。
NSD gives you all current information about the state of the server (call stacks for all threads, memory information, and so on).
NSD给出服务器状态的所有当前信息(所有线程的调用堆栈、内存信息,等等)。
You will fall into one of them when you memory map a file and then call write while another process truncates the same file.
例如,考虑一下在内存中对文件进行映射后调用write,与此同时另外一个进程将同一文件截断的情形。
Loading JSON into memory is one eval call away.
将JSON装载到内存只需一个eval调用。
Besides the memory required for the thread object, each thread requires two execution call stacks, which can be large.
除了Thread对象所需的内存之外,每个线程都需要两个可能很大的执行调用堆栈。
To recover the memory from the deleted objects, call the new release method when you are finished with them.
要想回收已删除对象的内存,应该在使用完这些对象时调用新的release方法。
What if the process was in the middle of allocating additional memory on its heap using malloc, and you call malloc from the signal handler?
如果当进程正在使用malloc在它的堆上分配额外的内存时,您通过信号处理器调用 malloc,那会怎样?
Prints specific details about the memory at location addr, including its location (stack, heap, text) and, if it is heap memory, then the call chains of its allocation and free history.
打印关于addr单元内存的特殊细节,包括它的储存单元(堆叠,累计,文本)以及,如果它累计了大量内存,还有它的分配调用链和释放历史。
By default, Xdebug displays fields for time, memory usage, function name, and the depth of the function call.
默认情况下,Xdebug将显示时间、内存使用量、函数名和函数调用深度字段。
Purify offers a wide set of memory watch point APIs that you can call from the debugger to assist you in debugging the memory corruption problems in your program.
Purify提供了您可以从调试器中调用的范围较大的内存观察点集合,从而帮您在您的程序中调试内存泄露问题。
Internal to the setup function, there's a call to kzalloc (which allocates kernel memory and zeroes it).
在安装函数内部,调用了kzalloc(分配内核内存并清零)。
This system call requires the file descriptor from shm_open and returns a pointer to memory.
这个系统调用需要shm_open返回的文件描述符,它返回指向内存的指针。
If you allow WLocker to call for Home, it keeps WidgetLocker itself running with high priority in the system memory, making it popup instantly like a regular lock screen would.
如果你允许WLocker调用主屏幕,WidgetLocker会将自己在系统内存中设为高优先级,让它像正常的锁定屏幕一样立刻弹出。
With the call to start_kernel, a long list of initialization functions are called to set up interrupts, perform further memory configuration, and load the initial RAM disk.
通过调用start_kernel,会调用一系列初始化函数来设置中断,执行进一步的内存配置,并加载初始ram磁盘。
You then call the readlines method, which reads the entire file into memory and splits the contents into a list of strings.
然后调用readlines方法,把整个文件读入内存并把内容拆分成string列表。
This output tells us which call chains are generating the Map.Entry objects; with some program analysis, it is usually fairly easy to pinpoint the source of the memory leak.
这个输出告诉我们哪些调用链生成了Map .Entry对象,并带有一些程序分析,找出内存泄漏来源一般来说是相当容易的。
Apart from the memory allocation changes, the remap_page_range call — which is used to map pages to user space — has been modified slightly.
除了内存分配的变化以外,remap _ page_range调用——用来映射页到用户空间——也经过了少量修改。
Your write system call will be interrupted by the bus error signal SIGBUS, because you performed a bad memory access.
此时write系统调用会被进程接收到的SIGBUS信号中断,因为当前进程访问了非法内存地址。
The fmemopen() function gives you a stdio FILE * object that refers to a buffer in memory. Replacing the open of test.jpg with a single call to fmemopen solves half the problem
fmemopen()函数提供了一个stdioFILE *对象,该对象表示内存中的一个缓冲区。
The fmemopen() function gives you a stdio FILE * object that refers to a buffer in memory. Replacing the open of test.jpg with a single call to fmemopen solves half the problem
fmemopen()函数提供了一个stdioFILE *对象,该对象表示内存中的一个缓冲区。
应用推荐