[bugfix] don't compare continuation objects by pointers. They may be

reused when it reenters the same stack position.
This commit is contained in:
Yuichi Nishiwaki
2015-06-23 03:14:00 +09:00
parent aae1b8792a
commit 777ba0ff6a
4 changed files with 26 additions and 19 deletions
+2 -1
View File
@@ -73,8 +73,9 @@ struct pic_state {
pic_allocf allocf;
struct pic_cont *cc;
pic_checkpoint *cp;
struct pic_cont *cc;
int ccnt;
pic_value *sp;
pic_value *stbase, *stend;
+2 -2
View File
@@ -12,14 +12,14 @@ extern "C" {
struct pic_cont {
PIC_JMPBUF jmp;
pic_checkpoint *cp;
int id;
pic_checkpoint *cp;
ptrdiff_t sp_offset;
ptrdiff_t ci_offset;
ptrdiff_t xp_offset;
size_t arena_idx;
pic_value ptable;
pic_code *ip;
pic_value results;