irep->pool not to be GCed

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-11-07 04:20:46 +09:00
parent e92d4e2680
commit 677a2ac226
8 changed files with 88 additions and 114 deletions
+11 -1
View File
@@ -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;