Reputation: 77
ECMA-CIL says the following:
In order to allow managed pointers to be used more flexibly, they are also permitted to point to areas that aren‘t under the control of the CLI garbage collector, such as the evaluation stack, static variables, and unmanaged memory. This allows them to be used in many of the same ways that unmanaged pointers (U) are used. Verification restrictions guarantee that, if all code is verifiable, a managed pointer to a value on the evaluation stack doesn‘t outlast the life of the location to which it points.
The text above implies that it is possible to have a managed pointer pointing to the evaluation stack. What instruction does this? The closest I can think of is getting a managed pointer to a local variable, but this is not the evaluation stack.
Upvotes: 1
Views: 74