Skip to content

Commit

Permalink
Add a comment about stack checks
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmar committed Nov 5, 2014
1 parent e6b3829 commit 081ef2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rts/StgMiscClosures.cmm
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ INFO_TABLE_FUN( stg_BCO, 4, 0, BCO, "BCO", "BCO", ARG_BCO )
{
/* entering a BCO means "apply it", same as a function */
Sp_adj(-2);
// Skip the stack check; the interpreter will do one before using
// the stack anyway.
Sp(1) = R1;
Sp(0) = stg_apply_interp_info;
jump stg_yield_to_interpreter [];
Expand Down

0 comments on commit 081ef2f

Please sign in to comment.