Skip to content

Commit 8862f32

Browse files
committed
Add a note about leaks when going back in VM
1 parent bdb2c44 commit 8862f32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/engine/virtualmachine_p.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,8 @@ do_exec : {
683683
if (goBack) {
684684
goBack = false;
685685
pos -= instruction_arg_count[OP_EXEC] + 1;
686+
// NOTE: Going back leaks all registers for the next time the same function is called.
687+
// This is for example used in the wait block (to call it again with the same time value).
686688
} else
687689
FREE_REGS(ret);
688690
return pos;

0 commit comments

Comments
 (0)