malloc
美
英 
例句
Now, you might think that this would cause problems for programs calling malloc -- how do they know about this struct?
现在,您可能会认为当程序调用malloc时这会引发问题——它们如何知道这个结构?
If you need 15 bytes, ask for 15 bytes; don't round it up to 32 bytes or some other bigger chunk like you used to do when you used malloc.
如果你需要15个字节,它就请求15个字节;不要像使用malloc的时候那样进位到32个字节或者更大的块大小。
It is possible for malloc to overcommit, and some other process may get the resource before the current process, resulting in a failure.
malloc可能会过量分配内存,其他进程可能在当前进程之前获得资源,这会导致错误。
malloc_init is going to be our function to initialize our memory allocator.
malloc_init将是初始化内存分配程序的函数。
If the user needs to track malloc and free calls in a particular user function, the malloc. d script can be modified as shown below.
如果用户需要跟踪某个用户函数中的malloc和free调用,那么可以按以下方式修改malloc.d脚本。
Since the session is a malloc'd object, we also have to free the session when we're done with it.
因为这个会话是一个malloc过的对象,所以我们在使用完它时还必须将其释放。
These three keywords are to the stack segment just as "malloc" and "dealloc" are to the heap segment . . . unnecessary.
这三个关键字之于栈,就像是“malloc”和“dealloc”之于堆……多余。
You add the stack_depth: 3 parameter to limit the stack trace collected when a malloc is called.
添加stack_depth:3参数,限制调用malloc时收集的栈跟踪。
Since a single heap is actually divided into many heaps (up to 32), unnecessary enabling of malloc multiheap can cause severe fragmentation.
因为单一堆实际上被分割为许多个堆(最多32个),不必要地启用mallocmultiheap会导致严重的碎片化。
Watson malloc: This new malloc subysystem handles small requests more quickly over the default implementation of memory fragmentation.
Watsonmalloc:与内存碎片的缺省实现相比,这种新的malloc子系统能够快速处理一些小的请求。
Pool allocation creates for each thread its own malloc pool which avoids lock contention with other threads.
poolallocation为每个线程创建它自己的malloc池,以此避免与其他线程发生锁争用。
Restartability without processes requires that we are able to release all malloc'ed memory.
没有进程需求的可重启性,我们能够释放所有分配的内存。
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,那会怎样?
Invoke this script-passing process ID of the process for which you wish to trace malloc calls.
调用这个脚本,传递希望跟踪其malloc调用的进程的进程ID。
Sometimes application programs may depend unknowingly on the side effects of the malloc 3. 1 allocation policy.
有时候,应用程序可能会不知不觉地依赖于malloc3.1分配策略的副作用。
In Init stage, it should parse the media and by this load engine's program to start engine, and malloc share memory.
初始化根据媒体的解析来加载启动视频引擎并实现握手,同时分配系统共享内存空间。
The following diagram illustrates the usage of a memory buffer allocated via a call to malloc.
下表说明了通过调用malloc函数来使用一段内存缓存。
Pool interface -- A vanilla interface that works as a malloc alternative.
池接口——替代malloc进行工作的普通接口。
The following Probe script uses the User Function Entry probe to track malloc routines and display the size of allocation.
下面的探测脚本使用用户函数进入探测跟踪malloc例程,显示分配的内存量。
Malloc buckets is an extension to the Yorktown allocation policy.
mallocbuckets是Yorktown分配策略的扩展。
They do, however, depend on low-level allocators like malloc and free to actually allocate and release their memory.
不过,它们依赖于malloc和free等低层的分配程序来实际地分配和释放它们的内存。
This provides a second option within malloc for satisfying a memory request.
这在malloc中为满足一个内存请求提供了第二种选择。
A paper describing Doug Lea's Malloc implementation is available in the Resources section later in this article.
在本文后面的参考资料部分中,有一篇描述DougLea的Malloc实现的文章。
The allocator then looks for an object in the free pool before calling malloc.
然后分配器调用malloc之前在此释放池中查找对象。
When an application requires a large number of small allocation requests, malloc buckets is more commonly used.
当应用程序有许多小的分配请求时,经常使用mallocbuckets。
By default, the malloc subsystem treats the entire process heap as a single entity.
在默认情况下,malloc子系统把整个进程堆当作单一实体。
The example can be used with any C application that uses malloc and free routines to allocate and free the process memory.
这个示例可以应用于任何使用malloc和free例程分配和释放进程内存的C应用程序。
This makes the environment variable USE_ZEND_ALLOC available to allow selection of malloc or emalloc memory allocations at runtime.
这使环境变量USE_ZEND_ALLOC可用于允许在运行时选择malloc或emalloc内存分配。
The answer may surprise you -- allocation in modern JVMs is far faster than the best performing malloc implementations.
答案可能令人惊讶——现代JVM中的分配比执行得最好的malloc实现还要快得多。
A new M_ZERO flag for malloc allows for memory allocation and zeroing in a single operation.
新的面向malloc的M_ZERO标记允许在单个操作中完成内存分配和调零。
A good practice is to always use memset along with malloc, or always use calloc.
良好的实践是始终结合使用memset和malloc,或者使用calloc。
Among other areas, let's discuss page space scrubbing, dynamic xmalloc, memory affinity, and Watson malloc.
有关其他的方面,让我们介绍一下页面空间清理、动态的xmalloc、内存关联和Watsonmalloc。
In the malloc. d script, the $target will be replaced by the process ID of the application myapp at runtime.
在malloc.d脚本中,在运行时把$target替换为应用程序myapp的进程ID。
Thus, unless you are writing legacy-compatible code, the use of the MALLOC and FREE macros is discouraged.
因此,除非你是正在写遗留兼容的代码,MALLOC和FREE的使用是不提倡的。
malloc: This allocates a given number of bytes and returns a pointer to them.
malloc:该函数分配给定的字节数,并返回一个指向它们的指针。
Calls to malloc and free and the C++ operators new and delete result in run-time manipulation of the heap.
调用malloc和free、C++的操作符new、delete在运行时进行堆的操作。
Because of the frequency of malloc and free memory, it should adopt memory-pool method to avoid memory fragments.
而流数据的内存管理,由于涉及到频繁的申请和释放,则需要采用“内存池”的方式,从而避免内存碎片的产生。
This is probably because actual programs that rely heavily on malloc increasingly tend to use a larger variety of chunk sizes.
这可能是因为严重依赖于malloc的实际程序趋向于使用大量不同大小的块。
The malloc routine from the pool interface returns a void*.
pool接口中的malloc例程返回void*。
The malloc routine doesn't call the constructor, but construct does.
malloc例程不调用构造函数,但是construct要调用构造函数。