summaryrefslogtreecommitdiffhomepage
path: root/doc
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-06-24 05:46:51 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-06-24 05:46:51 +0900
commit7366615b78382bfca5c719b3aaac9b27147c65d6 (patch)
tree36a024e0610f25f42195f5cf9938a922a4110dc5 /doc
parent90ddc2810aa7ab2b91b99adc576025fa19c37451 (diff)
parent08cfd9e63728db3a06a0e8c59b7caec30cd93e24 (diff)
downloadmruby-7366615b78382bfca5c719b3aaac9b27147c65d6.tar.gz
mruby-7366615b78382bfca5c719b3aaac9b27147c65d6.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'doc')
-rw-r--r--doc/mrbconf/README.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/mrbconf/README.md b/doc/mrbconf/README.md
index 813b80839..f0dd50da5 100644
--- a/doc/mrbconf/README.md
+++ b/doc/mrbconf/README.md
@@ -81,3 +81,26 @@ will be defined as `mrb_int`.
* Default value is 100.
* Ignored when `MRB_GC_FIXED_ARENA` isn't defined.
* Defines fixed GC arena size.
+
+## Memory pool configuration.
+
+`POOL_ALIGNMENT`
+* Default value is `4`.
+* If you're allocating data types that requires alignment more than default value define the
+largest value of required alignment.
+
+`POOL_PAGE_SIZE`
+* Default value is `16000`.
+* Specifies page size of pool page.
+* Smaller the value is increases memory overhead.
+
+## State atexit configuration.
+
+`MRB_FIXED_STATE_ATEXIT_STACK`
+* If defined enables fixed size `mrb_state` atexit stack.
+* Raises `RuntimeError` when `mrb_state_atexit` call count to same `mrb_state` exceeds
+`MRB_FIXED_STATE_ATEXIT_STACK_SIZE`'s value.
+
+`MRB_FIXED_STATE_ATEXIT_STACK_SIZE`
+* Default value is `5`.
+* If `MRB_FIXED_STATE_ATEXIT_STACK` isn't defined this macro is ignored.