Replies: 2 comments 5 replies
-
The reason why it cannot simply be on the stack is for systems which have separate (large) heap and (small) stack. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I normally use |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sometimes, it's useful to make a cross-compartment invocation truly stateless, and heap is used only for temporary storage. Is there a way to force such an invocation by restricting it to use a different API that automatically frees the allocation on exit (similar to RAII)? One idea I had is to keep track of the allotted caps in the stack (using a virtual sealing type, or using the user bit), and when the stack is popped or zeroed, the corresponding heap memory is freed. There must be an easier way to do this.
Beta Was this translation helpful? Give feedback.
All reactions