add TAIL_COPY_THRESHOLD to depth computed for closure bodies to avoid runstack overflow
svn: r5505
This commit is contained in:
parent
6596821faf
commit
1668d9c036
|
@ -1331,7 +1331,8 @@ scheme_resolve_closure_compilation(Scheme_Object *_data, Resolve_Info *info,
|
||||||
data->max_let_depth = (new_info->max_let_depth
|
data->max_let_depth = (new_info->max_let_depth
|
||||||
+ num_params
|
+ num_params
|
||||||
+ closure_size
|
+ closure_size
|
||||||
+ convert_size);
|
+ convert_size
|
||||||
|
+ SCHEME_TAIL_COPY_THRESHOLD);
|
||||||
|
|
||||||
/* Add code to box set!ed argument variables: */
|
/* Add code to box set!ed argument variables: */
|
||||||
for (i = 0; i < num_params; i++) {
|
for (i = 0; i < num_params; i++) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user