fix longmp in trow not to recover trail. This way we do not need to do
copy_term/2 and we avoid losing the attributed variable stack.
This commit is contained in:
6
C/grow.c
6
C/grow.c
@@ -856,9 +856,9 @@ static_growglobal(long size, CELL **ptr, CELL *hsplit)
|
||||
fprintf(Yap_stderr, "%% %cO Total of %g sec expanding stacks \n", vb_msg1, (double)total_delay_overflow_time/1000);
|
||||
}
|
||||
LeaveGrowMode(GrowStackMode);
|
||||
if (hsplit)
|
||||
return GDiff-GDiff0;
|
||||
else
|
||||
if (hsplit) {
|
||||
return size0;
|
||||
} else
|
||||
return GDiff-DelayDiff;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user