Skip to content

Commit

Permalink
Revert "u3: check for road stack overflow on every nock %2 and %9"
Browse files Browse the repository at this point in the history
This reverts commit 5ab77a7.
  • Loading branch information
joemfb committed Jul 7, 2022
1 parent ebe2fb0 commit fe6d96d
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions pkg/noun/nock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1839,23 +1839,6 @@ _n_kale(u3_noun a)
return a;
}

/* _n_sane(): check for stack overflow
*/
static inline void
_n_sane(c3_ys off_ys)
{
if ( !off_ys ) {
if( !(u3R->cap_p > u3R->hat_p) ) {
u3m_bail(c3__meme);
}
}
else {
if( !(u3R->cap_p < u3R->hat_p) ) {
u3m_bail(c3__meme);
}
}
}

typedef struct {
u3n_prog* pog_u;
c3_w ip_w;
Expand Down Expand Up @@ -2096,7 +2079,6 @@ _n_burn(u3n_prog* pog_u, u3_noun bus, c3_ys mov, c3_ys off)
x = _n_pep(mov, off);
fam = u3to(burnframe, u3R->cap_p) + off + mov;
u3R->cap_p = u3of(burnframe, fam - off);
_n_sane(off);
fam->ip_w = ip_w;
fam->pog_u = pog_u;
_n_push(mov, off, x);
Expand Down Expand Up @@ -2259,7 +2241,6 @@ _n_burn(u3n_prog* pog_u, u3_noun bus, c3_ys mov, c3_ys off)

fam = u3to(burnframe, u3R->cap_p) + off + mov;
u3R->cap_p = u3of(burnframe, fam - off);
_n_sane(off);
fam->ip_w = ip_w;
fam->pog_u = pog_u;

Expand Down

0 comments on commit fe6d96d

Please sign in to comment.