malloc
- 网络分配的;内存分配;分配内存;存储器分配
-
Have a corresponding free to every malloc .
每个malloc都要有一个对应的free。
-
A few applications don 't use malloc (), but they are the exception .
有一些应用程序不使用malloc(),不过它们是例外。
-
Malloc It 's the address of that chunk of memory .
需要返回什么?,What,must,malloc,be,returning?,那块内存的地址。
-
When an application requires a large number of small allocation requests , malloc buckets is more commonly used .
当应用程序有许多小的分配请求时,经常使用mallocbuckets。
-
Always use memset along with malloc , or always use calloc .
始终结合使用memset和malloc,或始终使用calloc。
-
We allocate memory on put ( malloc ) and we free memory on remove ( free ) .
我们在放入数据的时候分配内存(malloc),移除数据的时候释放内存(free)。
-
Therefore , any application we start from now on in this session will be using our malloc () and not the system one .
因此,从现在起,该会话中的任何应用程序都将使用我们的malloc(),而不是只有系统的应用程序能够使用。
-
By default , the malloc subsystem treats the entire process heap as a single entity .
在默认情况下,malloc子系统把整个进程堆当作单一实体。
-
The malloc routine doesn 't call the constructor , but construct does .
malloc例程不调用构造函数,但是construct要调用构造函数。
-
If you 've done much C programming , you have probably used malloc () and free () quite a bit .
如果您曾经编写过很多C程序,那么您可能曾多次使用过malloc()和free()。
-
The following diagram illustrates the usage of a memory buffer allocated via a call to malloc .
下表说明了通过调用malloc函数来使用一段内存缓存。
-
Malloc buckets is an extension to the Yorktown allocation policy .
mallocbuckets是Yorktown分配策略的扩展。
-
This will produce a file named malloc . so , which is a shared library containing our code .
该程序将生成一个名为malloc.so的文件,它是一个包含有我们的代码的共享库。
-
There is no malloc () function in Java technology because the JVM automatically allocates memory for objects .
在Java技术中没有malloc()函数,这是因为JVM可自动为对象分配内存。
-
A paper describing Doug Lea 's Malloc implementation is available in the Resources section later in this article .
在本文后面的参考资料部分中,有一篇描述DougLea的Malloc实现的文章。
-
Malloc It 's defined in a header file just FYI called standard lib .
是一个新的函数。,So,,malloc,is,a,new,function。,在头文件中定义了标准库作为参考。
-
The malloc allocation policy is less efficient than the default , and it is not recommended for use in most cases .
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应用程序。
-
The following Probe script uses the User Function Entry probe to track malloc routines and display the size of allocation .
下面的探测脚本使用用户函数进入探测跟踪malloc例程,显示分配的内存量。
-
On UNIX systems , you can now use your allocator in place of your system malloc () by doing this
在UNIX系统中,现在您可以用您的分配程序来取代系统的malloc(),做法如下
-
There are many implementations of malloc (), each with their own strengths and weaknesses .
malloc()的实现有很多,这些实现各有优点与缺点。
-
To try out these examples , copy this code listing and paste it into a file called malloc . c.
要试着运行这些示例,需要先复制本代码清单,并将其粘贴到一个名为malloc.c的文件中。
-
Since the session is a malloc 'd object , we also have to free the session when we 're done with it .
因为这个会话是一个malloc过的对象,所以我们在使用完它时还必须将其释放。
-
The answer may surprise you & allocation in modern JVMs is far faster than the best performing malloc implementations .
答案可能令人惊讶&现代JVM中的分配比执行得最好的malloc实现还要快得多。
-
Malloc : This allocates a given number of bytes and returns a pointer to them .
malloc:该函数分配给定的字节数,并返回一个指向它们的指针。
-
Invoke this script-passing process ID of the process for which you wish to trace malloc calls .
调用这个脚本,传递希望跟踪其malloc调用的进程的进程ID。
-
A new M_ZERO flag for malloc allows for memory allocation and zeroing in a single operation .
新的面向malloc的MZERO标记允许在单个操作中完成内存分配和调零。
-
The malloc / construct routine from the object-pool interface returns a pointer to the type .
object-pool接口中的malloc/construct例程返回指向类型的指针。
-
There is no graceful handling for out-of-memory errors ( malloc simply assumes success ) .
没有很好的内存不足处理方案(malloc只假定内存分配是成功的)。
-
Now , you might think that this would cause problems for programs calling malloc & how do they know about this struct ?
现在,您可能会认为当程序调用malloc时这会引发问题&它们如何知道这个结构?