Top "Heap-memory" questions

The heap is process memory set aside for dynamic allocation.

How is the array stored in memory?

I have a simple program which initializes an array as: int a[]={10,20,30,40,50}; char *p; p=(char*)a; Now I want …

arrays c pointers heap-memory stack-memory
memory allocation in Stack and Heap

This may seem like a very basic question, but its been in my head so: When we allocate a local …

c memory-management heap-memory dynamic-allocation stack-memory
Young , Tenured and Perm generation

I'm confused with Heap,Young,Tenured and Perm generation. Could anyone please explain?

java garbage-collection jvm heap-memory
Is a String literal stored on the stack? Is a new String stored on the stack?

Possible Duplicate: difference between string object and string literal Let's say I have two statements. String one = "abc"; String two = …

java memory-management heap-memory stack-memory
How to fix "Requested array size exceeds VM limit" error in Java?

Is there an log option that can let tomcat log the bad query instead just throwing this ? SEVERE: java.lang.…

java tomcat solr heap-memory
Stack vs heap allocation of structs in Go, and how they relate to garbage collection

I'm new to Go and I'm experiencing a bit of congitive dissonance between C-style stack-based programming where automatic variables live …

go heap-memory stack-memory
how to use gdb to explore the stack/heap?

Could anyone please give me a quick overview/point me to documentation of a way to inspect the stack (and …

c debugging gdb heap-memory stack-memory
Initialization of array on heap

How do i manually initiate values in array on heap? If the array is local variable (in stack), it can …

c++ memory-management heap-memory stack-memory
Stack and heap in c#

Possible Duplicate: What and where are the stack and heap There is a difference in C# between heap and stack. …

c# heap-memory stack-memory
Where are instance variables of an Object stored in the JVM?

Is an instance variable of an object in Java stored on the stack or method area of the JVM? Also, …

java jvm heap-memory jvm-hotspot