Skip to content

Commit

Permalink
tasklets.c: update used stack size
Browse files Browse the repository at this point in the history
was allowing case of stack_used_size < num_bytes to
slip by so restore function wasn't restoring all bytes
  • Loading branch information
mrieker@nii.net committed Feb 23, 2013
1 parent eed19f9 commit 0c102a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono/mini/tasklets.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ continuation_store (MonoContinuation *cont, int state, MonoException **e)
/* clear to avoid GC retention */
if (num_bytes < cont->stack_used_size) {
memset ((char*)cont->saved_stack + num_bytes, 0, cont->stack_used_size - num_bytes);
cont->stack_used_size = num_bytes;
}
cont->stack_used_size = num_bytes;
} else {
tasklets_lock ();
internal_init ();
Expand Down

0 comments on commit 0c102a1

Please sign in to comment.