Download for Windows Premium
Advertising
malloc
Definition
1. C library subroutine for dynamic memory allocation 2. allocates a block... See more
malloc
Managing memory with malloc () can be pretty daunting for programs that have long-running storage they need to keep around.
对于那些需要保持长期存储的程序使用malloc() 来管理内存可能会非常令人失望。
Not only does our memory manager have shortcomings, there are many shortcomings of malloc()-based memory management that remain no matter which allocator you use.
不只是我们的内存管理器有缺点,基于malloc()的内存管理器仍然也有很多缺点,不管您使用的是哪个分配程序。
Unlike in C, however, objects with trivial default constructors cannot be created by simply reinterpreting suitably aligned storage, such as memory allocated with std::malloc: placement-new is required to formally introduce a new object and avoid potential undefined behavior. [edit] Defect reports
然而不同于 C 中 ,拥有平凡默认构造函数的对象不能通过简单地转译对齐的存储,例如以 std : : malloc 分配的存储创建:要求布置 new 以形式上引入新对象 并避免潜在的未定义行为。
Rather than using malloc() and friends to allocate enough memory for a given object, you ask APR to allocate the memory from a memory pool.
不是使用 malloc ( ) 及其亲友来分配内存, 而是调用 APR 库函数从内存池中分配内存.
Inside the non-Java code, C's malloc() family of functions might be called to allocate storage, and unless you call free(), that storage will not be released, causing a memory leak.
在非Java代码内部,也许能调用C的malloc ( ) 系列函数,用它分配存储空间。 而且除非调用了free ( ) ,否则存储空间不会得到释放,从而造成内存"漏洞"的出现。
Still, banishing malloc requires coding discipline and some design compromises, a few of which we previously noted in discussing the JSON parser.
尽管如此,消除malloc需要编码规则和一些设计上的妥协,我们前面在讨论JSON解析器时已经提到了一些。
In C pointers can, of course, be null, but if you wanted a simple integer to be null, you'd have to first box it up into an object allocated by malloc on the heap.
在 C 中指针当然也可以为空,但是如果你想要一个简单的整型为空,你得首先把它装箱成一个在堆上用malloc 分配内存的对象。
On UNIX systems, you can now use your allocator in place of your system malloc() by doing this
在UNIX系统中,现在您可以用您的分配程序来取代系统的malloc(),做法如下
eRROR - malloc failed
错误 内存分配失败
No results found for this meaning.

Synonyms and analogies of "malloc" in English

Word & Expression of the day
Image of the day
ashtray: small container for cigarette ash and butts
Reveal the word
Advertising

Results: 9. Exact: 9. Elapsed time: 13 ms.

Word index: 1-300, 301-600, 601-900

Expression index: 1-400, 401-800, 801-1200

Phrase index: 1-400, 401-800, 801-1200