Top "Allocation" questions

Memory allocation is an operation of giving a program a block of memory.

Uninitialized memory blocks in VC++

As everyone knows, the Visual C++ runtime marks uninitialized or just freed memory blocks with special non-zero markers. Is there …

c++ memory allocation
What happens when you deallocate a pointer twice or more in C++?

int main() { Employee *e = new Employee(); delete e; delete e; ... delete e; return 0; }

c++ pointers memory-management allocation delete-operator
Constructor called on an already created object

If I call a constructor on an already constructed object or struct, will it allocate new space, or just use …

c++ memory constructor allocation
How to alloc a dynamic typed object

I have seen a lot of talk about dynamic typing in objective-c. But i haven't seen any examples of what …

objective-c dynamic allocation
How to write a thread-safe and efficient, lock-free memory allocator in C?

How to write a thread-safe and efficient, lock-free memory allocator in C? By efficient I mean: Fast allocation & deallocation …

c multithreading memory performance allocation
What is a NSPathStore2?

All that I know is this: Its private Its created somehow cause of strings trying to do Path related things …

xcode debugging nsstring allocation
Memory pools implementation in C

I am looking for a good memory pool implementation in C. it should include the following: Anti fragmentation. Be super …

c memory memory-management allocation pool
Java memory allocation on stack vs heap

I feel like a novice for asking this question -- but why is it that when I pass the Set …

java stack heap allocation
Why doesn't this C++ STL allocator allocate?

I'm trying to write a custom STL allocator that is derived from std::allocator, but somehow all calls to allocate() …

c++ stl allocation