Open QinshiWang opened 2 years ago
I know that when the signal is exit, the stack frame (mem
) is irrelevant, but it sounds to be error-prone.
Yes, this is the desired behavior. I can dig up the spec issue if you're curious...
Any copy-out behavior due to direction out or inout parameters of the enclosing action or control, and all of its callers, are still performed after the execution of the exit statement. See Section 6.7 for details on copy-out behavior.
So our implementation is not a bug. But I assert that for the behavior of the program, whether to copy out is irrelevant.
Out parameters are still copied out on exit signal. Is that okay?