From 677a2ac22633473fb286d7297a8585c01fe7394b Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 7 Nov 2013 04:20:46 +0900 Subject: irep->pool not to be GCed --- include/mruby/irep.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mruby/irep.h b/include/mruby/irep.h index 83cd4b9e8..a31fef39c 100644 --- a/include/mruby/irep.h +++ b/include/mruby/irep.h @@ -18,7 +18,17 @@ typedef struct mrb_irep { uint8_t flags; mrb_code *iseq; - mrb_value *pool; + struct irep_pool { + union { + mrb_float f; + struct irep_pool_string { + mrb_int len; + char buf[1]; + } *s; + mrb_int i; + } value; + enum mrb_vtype type; + } *pool; mrb_sym *syms; struct mrb_irep **reps; -- cgit v1.2.3