diff options
| author | take_cheeze <[email protected]> | 2014-06-19 22:02:19 +0900 |
|---|---|---|
| committer | take_cheeze <[email protected]> | 2014-06-19 22:02:19 +0900 |
| commit | dd37c520683c6fe149cc8f976776ee94e1065cc2 (patch) | |
| tree | 839a8d1002cf35700735b83f47d88a2d543e4200 /doc | |
| parent | 412c86bb58c85057d85e4cbe780ca119051e2ae6 (diff) | |
| download | mruby-dd37c520683c6fe149cc8f976776ee94e1065cc2.tar.gz mruby-dd37c520683c6fe149cc8f976776ee94e1065cc2.zip | |
Document GC mrbconfs.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/mrbconf/README.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/mrbconf/README.md b/doc/mrbconf/README.md index 1be60fc05..9532681eb 100644 --- a/doc/mrbconf/README.md +++ b/doc/mrbconf/README.md @@ -62,3 +62,22 @@ You can use mrbconfs with following ways: * Conflicts with `MRB_INT16`. * When `MRB_INT16` or `MRB_INT64` isn't defined `int`(most of the times 32-bit integer) will be defined as `mrb_int`. + +## Garbage collector configuration. + +`MRB_GC_STRESS` +* When defined full GC is emitted per each `RBasic` allocation. +* Mainly used in memory manager debugging. + +`MRB_GC_TURN_OFF_GENERATIONAL` +* When defined turns generational GC by default. + +`MRB_GC_FIXED_ARENA` +* When defined used fixed size GC arena. +* Raises `RuntimeError` when this is defined and GC arena size exceeds `MRB_GC_ARENA_SIZE`. +* Useful tracking unnecessary mruby object allocation. + +`MRB_GC_ARENA_SIZE` +* Default value 100. +* Ignored when `MRB_GC_FIXED_ARENA` isn't defined. +* Defines fixed GC arena size. |
