summaryrefslogtreecommitdiffhomepage
path: root/src/gc.c
AgeCommit message (Collapse)Author
2015-10-19Move MRB_GC_ARENA_SIZE to gc.h and fix compiler warningsfurunkel
2015-10-19Remove segregated value struct declarationfurunkel
2015-10-19Clean up GC codefurunkel
2015-09-22add new functions mrb_gc_register/unregister; close #1411Yukihiro "Matz" Matsumoto
some routines need to refer mruby objects (e.g. callbacks), in that case you have to protect your objects from garbage collection. the new functions mrb_gc_register() keeps those objects from GC. you have to remove your objects using mrb_gc_unregister() when your C routines use mruby objects any longer, otherwise objects will leak.
2015-07-14Applied gc patch to fix ORIGIN ICLASS method table leakCorey Powell
Based on the gc patch by ko1 https://github.com/ruby/ruby/commit/5922c954614e5947a548780bb3b894626affe6dd
2014-10-02cast MRB_ENV_STACK_LEN to (mrb_int); ref #2600Yukihiro "Matz" Matsumoto
2014-08-29Fix mismatches for MRB_API declarations.Tatsuhiko Kubo
2014-08-27Merge pull request #2567 from cubicdaiya/issues/space_after_comma2Yukihiro "Matz" Matsumoto
Add a missing space after ",".
2014-08-27Add a missing space after ",".Tatsuhiko Kubo
2014-08-27Use mrb_malloc() instead of mrb_realloc().Tatsuhiko Kubo
2014-08-27Remove discareded NULL checks.Tatsuhiko Kubo
2014-08-07Fix typo in gc.cJun Hiroe
2014-08-07Merge pull request #2512 from suzukaze/gc-state-rootYukihiro "Matz" Matsumoto
Rename GC_STATE_NONE GC_STATE_ROOT
2014-08-06Refactor incremental_sweep_phase() in gc.cJun Hiroe
2014-08-06Rename GC_STATE_NONE GC_STATE_ROOTJun Hiroe
2014-08-05Refactor obj_free() in gc.cJun Hiroe
2014-08-05write barrier doc updateYukihiro "Matz" Matsumoto
2014-08-05Merge branch 'add-gc-docs' of https://github.com/suzukaze/mruby into ↵Yukihiro "Matz" Matsumoto
suzukaze-add-gc-docs
2014-08-05Add write_barrier docsJun Hiroe
2014-08-04Merge branch 'master' of github.com:mruby/mrubyYukihiro "Matz" Matsumoto
2014-08-03fix conversion warningscremno
Those warnings are not enabled by default, but getting rid of them doesn't hurt.
2014-08-04rename obsolete mrb_special_const_p to mrb_immediate_pYukihiro "Matz" Matsumoto
2014-08-04add MRB_API modifiers to mruby API functionsYukihiro "Matz" Matsumoto
2014-07-24Merge pull request #2477 from take-cheeze/allocf_udYukihiro "Matz" Matsumoto
Add field `allocf_ud` to replace current `ud`.
2014-07-21Use MRB_TT_EXCEPTION in exception object.take_cheeze
2014-07-17Add field `allocf_ud` to replace current `ud`.take_cheeze
Since some use it as `mrb_state` associated user data.
2014-07-02Ensure RVALUE is large enough for word boxing types.David Turnbull
2014-06-04mark pre-allocated exceptionYukihiro "Matz" Matsumoto
2014-06-04use pre-allocated RuntimeError for out-of-memoryYukihiro "Matz" Matsumoto
2014-06-03Fix typos in gckatmutua
2014-05-03Fix indentJun Hiroe
2014-04-29stack may be unclearedYukihiro "Matz" Matsumoto
2014-04-29fiber context may be NULLYukihiro "Matz" Matsumoto
2014-04-27forgot to remove abort()Yukihiro "Matz" Matsumoto
2014-04-27mark may be missed when eval() is calledYukihiro "Matz" Matsumoto
2014-04-24Fix MSVC warning for gc.ckyab
2014-04-01Use MRB_ENV_STACK_SHARED_P to check `cioff` field of REnv.take_cheeze
2014-04-01Use MRB_ENV_STACK_LEN instead of accessing `flags` directly to get REnv's ↵take_cheeze
stack length.
2014-03-18mark root fiber object; close #1865Yukihiro "Matz" Matsumoto
2014-03-10add comments at end of include guardcubicdaiya
2014-02-28remove break altogether in ci loopYukihiro "Matz" Matsumoto
2014-02-27should not continue loop when ci = NULLYukihiro "Matz" Matsumoto
2014-02-09Merge pull request #1674 from cremno/mrb_bool-FALSE-TRUEYukihiro "Matz" Matsumoto
use mrb_bool, FALSE and TRUE more
2014-02-06introduce mrb_str_new_lit() to create strings from C string litralsYukihiro "Matz" Matsumoto
2014-01-31use mrb_bool, FALSE and TRUE morecremno
It doesn't matter to me if one is using FALSE/TRUE instead of 1/0 but I prefer a type (alias) which emphasizes boolean vars to int. I changed 1/0 to FALSE/TRUE anyway.
2014-01-31rework mruby-objectspace and gc.[ch]cremno
- functions should have C linkage (for C++ code) - add prefix to each_object_callback - use more appropriate variable types / initialization - ObjectSpace::count_objects has 1 opt. arg. - prefer mrb_intern_lit to mrb_intern_cstr for str. lit. - mruby/value.h is included by mruby.h - adjust coding style
2014-01-07remove superfluous includescremno
- reduce compile time by a little bit (full-core: ~0.7s for me) - thanks to 'include-what-you-use' for some help - include Standard C header files before any other (coding style)
2014-01-02Merge pull request #1637 from h2so5/extended-arena-sizeYukihiro "Matz" Matsumoto
Fix extended arena check in gc_protect
2014-01-02Fix extended arena check in gc_protecth2so5
2014-01-02remove various preprocessor conditionalscremno
- HAVE_IEEEFP_H is nowhere defined or needed at all - FreeBSD < 4 is unsupported since years - MSVC workaround (around what exactly?)