aboutsummaryrefslogtreecommitdiffstats
path: root/vm_callinfo.h
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2020-03-02 14:25:35 +0900
committerKoichi Sasada <ko1@atdot.net>2020-03-02 14:25:35 +0900
commit4fd51f848a59b999427d3b941d8777ec00f0431c (patch)
tree1e3b29545b49a5c8e4c0ed48888c98085e81bc25 /vm_callinfo.h
parentd348b4adefd0f570686640335e183d8a96d626c6 (diff)
downloadruby-4fd51f848a59b999427d3b941d8777ec00f0431c.tar.gz
vm_cc_fill() need to clear aux.
vm_cc_fill() fills CC information into stack allocated memory so it is not cleared. So we need to clear CC->aux.
Diffstat (limited to 'vm_callinfo.h')
-rw-r--r--vm_callinfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_callinfo.h b/vm_callinfo.h
index 9b170bb297..0f90d109b8 100644
--- a/vm_callinfo.h
+++ b/vm_callinfo.h
@@ -239,6 +239,7 @@ struct rb_callcache {
union {
const unsigned int attr_index;
const enum method_missing_reason method_missing_reason; /* used by method_missing */
+ VALUE v;
} aux_;
};
@@ -265,6 +266,7 @@ vm_cc_fill(struct rb_callcache *cc,
.klass = klass,
.cme_ = cme,
.call_ = call,
+ .aux_.v = 0,
};
MEMCPY(cc, &cc_body, struct rb_callcache, 1);
return cc;