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:
Vítor Santos de Costa
2008-10-18 11:03:25 +01:00
parent 87987d0b85
commit 7207c18e65
6 changed files with 9 additions and 9 deletions

View File

@@ -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;
}