10 Commits

Author SHA1 Message Date
Yukihiro "Matz" Matsumoto 6a9efd6849 Invoke mrb_full_gc() before ObjectSpace.count_objects. 2017-11-19 12:19:46 +09:00
take_cheeze f9076230f2 Fix crash in method call in ObjectSpace.each_object block.
* Filter `MRB_TT_ENV` and `MRB_TT_ICLASS`.
* Set `mrb->string_class` in `mrb_init_exception` instead.
2014-06-28 00:45:47 +09:00
take_cheeze c4f14755a7 Always increment total field of os_count_struct in callback.
Check sum of `ObjectSpace.count_objects` values is twice of total objects count.
(Which is CRuby's behavior.)
2014-04-06 18:13:29 +09:00
take_cheeze 6d75f89ee5 Support :T_FIBER in ObjectSpace.count_objects . 2014-04-03 17:18:46 +09:00
take_cheeze 889a2e0932 Use CRuby compatible key in ObjectSpace.count_objects . 2014-03-27 07:06:44 +09:00
take_cheeze e5922aa896 Implement ObjectSpace.each_object . 2014-03-25 08:32:50 +09:00
Daniel Bovensiepen aa3ff53f04 Improve test of mruby-objectspace-ext GEM 2013-08-04 22:42:57 +08:00
Ryan Scott da6b61db79 Removed debug output 2013-05-17 07:56:31 +10:00
Ryan Scott f62cc5b1ee Changed the object_count so that it only iterates over the RBasic object, not the full RVALUE known by the GC 2013-05-17 07:41:13 +10:00
Ryan Scott 222918deae First implementation of ObjectSpace moved outside of gc.c 2013-05-17 07:21:33 +10:00