fixed an GC issue caused by unbalanced moo_pushtmp() and moo_poptmp() calls

This commit is contained in:
hyunghwan.chung 2017-12-13 16:00:48 +00:00
parent 92a21f04b8
commit b61734a9e8
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ extend SmallInteger
} }
} }
class Console(Object) from 'console' class Console(Object) from 'con'
{ {
method(#primitive) _open. method(#primitive) _open.
method(#primitive) _close. method(#primitive) _close.

View File

@ -1527,11 +1527,11 @@ TODO: overcome this problem - accept parameters....
s1 = moo_makesymbol (moo, objname->ptr, objname->len); s1 = moo_makesymbol (moo, objname->ptr, objname->len);
if (!s1) goto oops; if (!s1) goto oops;
moo_pushtmp (moo, (moo_oop_t*)&s1); moo_pushtmp (moo, (moo_oop_t*)&s1); tmp_count++;
s2 = moo_makesymbol (moo, mthname->ptr, mthname->len); s2 = moo_makesymbol (moo, mthname->ptr, mthname->len);
if (!s2) goto oops; if (!s2) goto oops;
moo_pushtmp (moo, (moo_oop_t*)&s2); moo_pushtmp (moo, (moo_oop_t*)&s2); tmp_count++;
#endif #endif
/* create a fake initial context. */ /* create a fake initial context. */