Revert "vm.c (OP_ENTER): clear all registers region in the stack"

This reverts commit 19385a8710.
The issue is covered by 1003a6.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-12-16 19:26:56 +09:00
parent d1003a6f9a
commit 2f5c2d6b42
+1 -1
View File
@@ -2101,7 +2101,7 @@ RETRY_TRY_BLOCK:
/* clear local (but non-argument) variables */
mrb_int pos = m1+2; /* self+m1+blk */
if (irep->nlocals-pos > 0) {
stack_clear(&regs[pos], irep->nregs-pos);
stack_clear(&regs[pos], irep->nlocals-pos);
}
NEXT;
}