Top "Stack-memory" questions

Questions regarding process stack memory.

What goes to RAM, Harddrive, Stack and Heap in C++?

Could someone tell in general what goes to what (Harddrive,RAM, Stack or Heap) at runtime in C++ for these …

c++ memory heap-memory stack-memory
Java stack and heap memory management

I want to know how the memory is being allocated in the following program: public class MemoryClass { public static void …

java memory memory-management heap-memory stack-memory
Where is allocated variable reference, in stack or in the heap?

I have a question What happend when I declare a variable inside a method, for example. void myMethod() { Ship myShip = …

java concurrency heap-memory stack-memory
Is it better to use heap or stack variables?

An experienced C++ user told me that I should strive for using heap variables, i.e.: A* obj = new A("…

c++ variables heap-memory stack-memory
Stack vs. Heap in Javascript? (Maximum call stack size exceeded)

I'm trying to build a web-page for which I need to shovel around several 100MB of data in JavaScript. With …

javascript memory-management heap-memory stack-memory
Thread safety with heap-allocated memory

I was reading this: http://en.wikipedia.org/wiki/Thread_safety Is the following function thread-safe? void foo(int y){ …

c++ thread-safety heap-memory stack-memory
How to find if a variable is allocated in stack or heap?

Stumbled upon this interview question somewhere, In C, Given a variable x, how do you find out if the space …

c++ c heap-memory stack-memory
where is array saved in memory in java?

If I have a function that in that function I declare: Object arr[] = new Object[20]; Where are arr and the …

java arrays memory heap-memory stack-memory
Returning stack variable?

So, I've always been a little fuzzy on C++ pointers vs. ... whatever the other one is called. Like, Object* pointer = …

c++ pointers variables heap-memory stack-memory
Automatic variables in C++

Possible Duplicate: In C++, why should new be used as little as possible? Where are automatic variables allocated in C++? …

c++ memory heap-memory stack-memory automatic-properties