4 ms·
> The magic, as the author points out, is dynamic stack allocation. If you disassociate a thread with a required stack size, then you are back to using just the
by stock_toaster 8y ago
> The magic, as the author points out, is dynamic stack allocation. If you disassociate a thread with a required stack size, then you are back to using just the amount of memory that your object heap and reference stores are using. GC gets to be trickier to of course.
I would imagine register based VMs have a leg up in this regard?
- chrisseaton 8y ago> I would imagine register based VMs have a leg up in this regard? That doesn't make any sense - register VMs have exactly the same requirement for stack frames as stack based VMs do.
- ptx 8y agoAs I understand it, stack-based VMs use a stack for the operands that the VM instructions operate on, whereas a register-based VM puts the operands in registers rather than a stack. Both types of VMs use a stack for the function call stack (which is not the same stack as the operand stack), though, so there is no difference in that regard.