summaryrefslogtreecommitdiff
path: root/mjit.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-30 18:26:12 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-10-30 18:26:12 +0000
commitb51724aac5b8024dd8515534d66b20f71742415a (patch)
treec83e311b8815805dea1c89719ed74ebaccc7665d /mjit.c
parenta5582e69c1812b6a7d5efb746008f49237232e06 (diff)
mjit.c (free_list): clear .length
For robustness against future changes. There should be no impact at the moment,here, but we may call mjit_finish more than once in a process lifetime in the future (implementing "stop" instead of just "pause") git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mjit.c b/mjit.c
index 888f0461aa..3cb8f1daf1 100644
--- a/mjit.c
+++ b/mjit.c
@@ -135,6 +135,7 @@ free_list(struct rb_mjit_unit_list *list)
free_unit(node->unit);
xfree(node);
}
+ list->length = 0;
}
/* MJIT info related to an existing continutaion. */