gc.h: rename majorgc_old_threashold to oldgen_threashold

This field means that if you have more old generation objects than
this value, major GC mode will be turned on.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-06-06 11:26:35 +09:00
parent b47c8b738a
commit 8b8e186688
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ typedef struct mrb_gc {
mrb_bool full :1;
mrb_bool generational :1;
mrb_bool out_of_memory :1;
size_t majorgc_old_threshold;
size_t oldgen_threshold;
} mrb_gc;
MRB_API mrb_bool mrb_object_dead_p(struct mrb_state *mrb, struct RBasic *object);