Top "Heap-memory" questions

The heap is process memory set aside for dynamic allocation.

C++ Heap Corruption

I haven't done any C++ in a while, but decided to finish a big project I was working on for …

c++ debugging visual-c++ corruption heap-memory
What is the difference between xmx and MaxRAM JVM parameters?

MaxRAM: based on the amount of memory on the machine. The proportion of memory to use for the heap is …

java jvm heap heap-memory
How to avoid MATLAB crash when opening too many figures?

Sometimes I start a MATLAB script and realize too late that it is going to output way too many figures. …

java matlab heap-memory jvm-crash
Class members allocation on heap/stack?

If a class is declared as follows: class MyClass { char * MyMember; MyClass() { MyMember = new char[250]; } ~MyClass() { delete[] MyMember; } }; And it …

c++ memory-management heap-memory stack-memory
What happens when we set Xmx and Xms equal size

When we set the values of Xms and Xmx to be equal, what is the impact on the FullGC, or …

java garbage-collection jvm heap-memory jrockit
What is the meaning of "From Space" and "To Space" shown in jmap?

I understand the difference between new gen / old gen /perm gen, but I don't know what "To Space" and "From …

java memory garbage-collection heap-memory jmap
Out of heap space during serialization

The following code is causing a OutOfMemmoryError: heap space for some 3 million rows. Memory allocated to JVM is 4 GB, using 64 …

java serialization garbage-collection heap-memory out-of-memory
unique_ptr heap and stack allocation

Raw pointers can point to objects allocated on the stack or on the heap. Heap allocation example: // heap allocation int* …

c++11 pointers smart-pointers heap-memory unique-ptr
How to empty or clear heap memory dynamically

My project is totally bases on images. I am using a gallery and a coverflow in my project and due …

android heap-memory forceclose
Can you declare a pointer on the heap?

This is the method for creating a variable on the heap in C++: T *ptr = new T; ptr refers to …

c++ dynamic-memory-allocation heap-memory