A
A
Alexey FRZ2018-05-29 12:20:09
.NET
Alexey FRZ, 2018-05-29 12:20:09

Stack in .NET. How is the top frame reset?

The stack is made up of frames. Each frame stores information about the current state of the program, local variables, methods and their parameters. Access is only possible to the top frame.
1) I call the method, it is executed, there is a return to the call point. In the stack, the top frame is overwritten or falls down the stack with frames? (an analogy with a stack of plates)
2) If the method is overwritten and does not fall into the bottom of the stack with frames. I call the method further in the code again, how will it be executed if on the stack then the data is erased about it.
3) In general, what is the data in a stack with frames (plates) that are lower than the head of the stack? Executed methods ? Or what?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2018-05-29
@leshqow

https://habr.com/post/347280/ everything is described here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question