Skip to content

Commit 6288e1c

Browse files
committed
Make BC_INC a GC point when we don’t use tagging
It can allocate, and the IfNil benchmark runs out of memory. Ooops. Signed-off-by: Stefan Marr <git@stefan-marr.de>
1 parent 9e4f916 commit 6288e1c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/interpreter/InterpreterLoop.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,13 @@ LABEL_BC_RETURN_SELF: {
308308
LABEL_BC_INC:
309309
PROLOGUE(1);
310310
doInc();
311+
// doInc allocates memory, and if we are not carefully, benchmarks such as the
312+
// IfNil benchmark will allocated but not reach a GC point
313+
#if USE_TAGGING
311314
DISPATCH_NOGC();
315+
#else
316+
DISPATCH_GC();
317+
#endif
312318

313319
LABEL_BC_DEC:
314320
PROLOGUE(1);

0 commit comments

Comments
 (0)