[bugfix] don't compare continuation objects by pointers. They may be
reused when it reenters the same stack position.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user