changed to store the stack poitner of the active process before context switching. the stored stack pointer is used to restore stix->sp when a method return is performed

This commit is contained in:
hyunghwan.chung
2016-02-16 17:00:10 +00:00
parent 8f91b7adc3
commit fc7a44ba7d
2 changed files with 23 additions and 7 deletions

View File

@ -500,7 +500,9 @@ struct stix_context_t
/* SmallInteger, instruction pointer */
stix_oop_t ip;
/* SmallInteger, stack pointer */
/* SmallInteger, stack pointer.
* For a method context, this pointer stores the stack pointer
* of the active process before it gets activated. */
stix_oop_t sp;
/* SmallInteger. Number of temporaries.