mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
a5582e69c1
commit
b51724aac5
1 changed files with 1 additions and 0 deletions
1
mjit.c
1
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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue