summaryrefslogtreecommitdiffhomepage
path: root/src/gc.c
AgeCommit message (Collapse)Author
2013-07-22change else formattingYukihiro "Matz" Matsumoto
2013-07-19cleanup redundant codes with incremental_gc_until()fleuria
2013-07-19rename advance_phase to incremental_gc_untilfleuria
in fact advance_phace() is not really a "phase", but can be used as an utility function.
2013-07-14Replace 0 with NULL because set NULL in sturct pointer.Jun Hiroe
2013-07-12mark stacks in final_marking; close #1359; close #1362Yukihiro "Matz" Matsumoto
2013-07-12factor out context stack markingYukihiro "Matz" Matsumoto
2013-07-02Merge pull request #1330 from suzukaze/refactor-gc-cYukihiro "Matz" Matsumoto
Refactor mrb_realloc() func in gc.c.
2013-07-01Refactor mrb_realloc() func in gc.c.Jun Hiroe
2013-07-01Fix unsigned/signed warning.Carson McDonald
2013-06-28refactor mrb_realloc()fleuria
remove the redundant codes with mrb_malloc_simple()
2013-06-25add mrb_malloc_simple() that returns NULL on errorYukihiro "Matz" Matsumoto
2013-06-20Fix compile warning for abortkyab
2013-06-11Check parameters strictly.Masaki Muranaka
calloc in C99 is expected to return NULL when nelem * len == 0.
2013-05-26Add MRB_WORD_BOXING mode (represent mrb_value as a word)kimu_shu
2013-05-26fix fiber GC problemYukihiro "Matz" Matsumoto
2013-05-22garbage collect context (fiber) properlyYukihiro "Matz" Matsumoto
2013-05-20primary mruby fiber implementationYukihiro "Matz" Matsumoto
2013-05-18Fixed the each object callback to be more consistent with other callbacks.Ryan Scott
2013-05-17Changed the each_object callback so that a pointer is passed for the object, ↵Ryan Scott
instead of the struct.
2013-05-17Changed the object_count so that it only iterates over the RBasic object, ↵Ryan Scott
not the full RVALUE known by the GC
2013-05-17First implementation of ObjectSpace moved outside of gc.cRyan Scott
2013-05-12Change in formatting for os_count_objects to be consistent with other functions.Ryan Scott
2013-05-12ObjectSpace.count_objects was incorrectly checking if an object was already ↵Ryan Scott
freed. Amended the count_objects test to ensure the correct distinction
2013-05-12Implemented ObjectSpace.count_objects to count the number of allocated ↵Ryan Scott
objects for each type
2013-04-29change return value of mrb_free from void* to voidYukihiro "Matz" Matsumoto
2013-04-29rename hash related gc functionsYukihiro "Matz" Matsumoto
2013-04-29fix mrb_string_shared memory leaksYukihiro "Matz" Matsumoto
2013-04-28mrb_str_new_static(): zero copy string creationYukihiro "Matz" Matsumoto
2013-04-25rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206Yukihiro "Matz" Matsumoto
2013-04-22Use mrb_bool for the 'b' format specifier of mrb_get_argsh2so5
2013-04-01Add the care for malloc failed.Masaki Muranaka
At the first time, mrb_realloc raise RuntimeError. At the time fails twice in a row, it causes panic.
2013-03-29Rearrange SIZE_MAX. It is supported also VC++ since its version10. And there ↵Masaki Muranaka
seems SIZE_MAX is defined in stdint.h. And it possibly (depends on the version of VC++) conflicts with SIZE_MAX in limits.h. This patch is no need if I did not support VC++.
2013-03-29Sort include files. Some redundant includes are removed.Masaki Muranaka
2013-03-26remove all MRB_TT_MAIN from sourceYukihiro Matz Matsumoto
2013-03-25Make mrb_top_self return a real instance.Carson McDonald
2013-03-24Use size_t instead of int. This is for portability.Yukihiro Matz Matsumoto
2013-03-19rename mrb_true_or_false_value() to mrb_bool_value()Yukihiro Matz Matsumoto
2013-03-19Use mrb_true_or_false_value() / in gc_generational_mode_set().Masaki Muranaka
2013-03-19Use mrb_true_or_false_value() / in change_gen_gc_mode().Masaki Muranaka
2013-03-19Use mrb_true_or_false_value() / in gc_disable().Masaki Muranaka
2013-03-19Use mrb_true_or_false_value() / in gc_enable().Masaki Muranaka
2013-03-15rename mrb_basic to mrb_basic_ptr; close #1011Yukihiro Matz Matsumoto
2013-03-14Define type mrb_bool. It is typedef-ed to _Bool on C99, unsigned int on MSVC.Masaki Muranaka
It is safer than applying 1bit bit-fields to signed int. For forward compatibility, you should substiture only 1 or 0 for the variable typed mrb_bool.
2013-03-02Adjust some indentsMATSUMOTO Ryosuke
2013-03-01Merge branch 'master' into pluggable_structmattn
2013-03-01Pluggable Structmattn
2013-03-01Pluggable Structmattn
2013-02-28Fix arena size check.Carson McDonald
2013-02-26Clean code up.Masaki Muranaka
2013-02-20rename RVALUE union membersYukihiro Matz Matsumoto