summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorcremno <[email protected]>2014-08-27 12:51:10 +0200
committercremno <[email protected]>2014-08-27 12:51:10 +0200
commit89b27648dd2cc05ea60bb6c79aec4db1ef712497 (patch)
tree7f4a15c95d03702d9e8a4c1cff6b3bea135b29e4 /include
parentecda19f4024cd853d933b059ba9f082a42837096 (diff)
downloadmruby-89b27648dd2cc05ea60bb6c79aec4db1ef712497.tar.gz
mruby-89b27648dd2cc05ea60bb6c79aec4db1ef712497.zip
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.
Diffstat (limited to 'include')
-rw-r--r--include/mruby.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h
index 480080e8b..c45925844 100644
--- a/include/mruby.h
+++ b/include/mruby.h
@@ -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;