mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
add symbol table overflow check
Since raising an error might intern a few new strings, some symbols need to be reserved. 8 should be sufficient. If the real limit has been reached, mrb_bug() is called.
This commit is contained in:
@@ -161,6 +161,7 @@ typedef struct mrb_state {
|
||||
mrb_bool gc_full:1;
|
||||
mrb_bool is_generational_gc_mode:1;
|
||||
mrb_bool out_of_memory:1;
|
||||
mrb_bool symbol_table_overflow:1;
|
||||
size_t majorgc_old_threshold;
|
||||
struct alloca_header *mems;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user