summaryrefslogtreecommitdiffhomepage
path: root/src/gc.c
AgeCommit message (Collapse)Author
2012-06-05mruby/array.h: rename buf to ptrYukihiro Matsumoto
2012-06-05mruby/string.h: rename buf to ptrYukihiro Matsumoto
2012-06-04remove mrb_open NULL check for small test programs. They are only for ↵Yukihiro Matsumoto
proof-on-concept test, not production code. Adding precise checks are not needed for those code
2012-06-03Check mrb_open return value for NULLJon
2012-06-03make arrays to share bodiesYukihiro Matsumoto
2012-06-03mrb_malloc/calloc/realloc should call mrb_garbage_collect before returning NULLYukihiro Matsumoto
2012-06-03should decref shared string body on gc_freeYukihiro Matsumoto
2012-06-03make shared string to reference-counted C structure to reduce GC pressureYukihiro Matsumoto
2012-06-01new API mrb_gc_protect() to add object to arenaYukihiro Matsumoto
2012-05-31correctly share string bodiesYukihiro Matsumoto
2012-05-31allow string shared bodyYukihiro Matsumoto
2012-05-31resolve conflictYukihiro Matsumoto
2012-05-30MRB_GC_STRESS for GC testYukihiro Matsumoto
2012-05-30remove spaces after open parenYukihiro Matsumoto
2012-05-30mark ci->proc as wellYukihiro Matsumoto
2012-05-29force room in arena before raising arena overflow errorYukihiro Matsumoto
2012-05-29compact arena before raising exception; also reserve a few slots to allocate ↵Yukihiro Matsumoto
exception objects
2012-05-24made mrb_get_args() better (optinal args, type checks); close #173 #176Yukihiro Matsumoto
2012-05-23cast style consistencyYukihiro Matsumoto
2012-05-22should mark iv from MRB_TT_DATAYukihiro Matsumoto
2012-05-20More C++ compilability work: mrb_obj_alloc void* conversionsMitchell Blank Jr
One of the biggest set of changes needed to make C++ compile, is that you can't autoconvert "void*" to a different pointer type without a cast (you can of course, convert pointers *to* "void*"!) For the first part, convert the users of "mrb_obj_alloc". Since it has to return something, make it RBasic* (that's what mrb_obj_alloc() is operating on anyway). This way, even in C you'll get a warning if you don't cast it. For places where there are a lot of similar calls to mrb_obj_alloc(), this can be easily hidden through a macro. I did this in string.c: #define mrb_obj_alloc_string(mrb) ((struct RString *) mrb_obj_alloc((mrb), MRB_TT_STRING, (mrb)->string_class)) I also updated the mrb_object() macro to also return a RBasic* -- my previous commit changed that from "void*" -> "RObject*", but I figure it should be consistent with mrb_obj_alloc()
2012-05-07gc should handle regexp and match objectsYukihiro Matsumoto
2012-05-07argument type of mrb_gc_free_ht() has changedYukihiro Matsumoto
2012-05-05hash refactoredYukihiro Matsumoto
2012-04-30rm whitespaceroco
2012-04-27Merge pull request #61 from pbhogan/fix-warningsYukihiro "Matz" Matsumoto
Fix various warnings
2012-04-28struct RString member should not be mrb_valueYukihiro Matsumoto
2012-04-26Clean up switch statements.Patrick Hogan
Some formatting and add default label to silence warning about unhanded cases. Signed-off-by: Patrick Hogan <[email protected]>
2012-04-24Call dfree member on RData/MRB_TT_DATA when collectedPatrick Hogan
Signed-off-by: Patrick Hogan <[email protected]>
2012-04-24move header files {irep,dump,cdump,ritehash}.h to /include/mrubyYukihiro Matsumoto
2012-04-23Merge branch 'master' of github.com:mruby/mrubymimaki
Conflicts: src/variable.c
2012-04-23add file headermimaki
2012-04-20should not free mrb stack; a bug found&fixed by @miura1729Yukihiro Matsumoto
2012-04-20move src/mdata.h to include/mruby/data.hYukihiro Matsumoto
2012-04-20add mruby sourcesmimaki