summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2020-07-21Remove unnecessory methods in `mruby-objectspace`; ref #5041dearblue
The `ObjectSpace#memsize_of` and `ObjectSpace#memsize_of_all` in `mruby-objectspace` ware migrated to `mruby-os-memsize` mrbgem.
2020-07-21Fix the VM stack handling bug in 'mrb_yield_with_class()`; fix #5042Yukihiro "Matz" Matsumoto
2020-07-20Implement `Kernel#print` and `Kernel#puts` in C.Yukihiro "Matz" Matsumoto
2020-07-20Merge pull request #5041 from RoryO/extract-memsize-to-gemYukihiro "Matz" Matsumoto
Extract memsize to gem
2020-07-19Adding to authorsRory OConnell
2020-07-19Separate `memsize_of` and `memsize_of_all` to a separate gem; #5040Rory OConnell
Those methods are originally CRuby specific. Co-authored-by: Yukihiro "Matz" Matsumoto <[email protected]>
2020-07-20Remove some tests from `mruby-objectspace` gem; #5040Yukihiro "Matz" Matsumoto
Those tests succeeds only on some configuration.
2020-07-20Avoid accessing `obj.tt` of `mrb_value`; #5040Yukihiro "Matz" Matsumoto
The old code compiles only on `MRB_NO_BOXING`.
2020-07-20Replace 0 by `MRB_EACH_OBJ_OK`; #5040Yukihiro "Matz" Matsumoto
2020-07-19Skip `MRB_TT_FREE` and `MRB_TT_BREAK` in `each_object`.Yukihiro "Matz" Matsumoto
2020-07-19Reorder members of `struct os_each_object_data` to stop warnings.Yukihiro "Matz" Matsumoto
`mrb_value` may or may not be struct according to configuration.
2020-07-19Should have updated the arg spec for `memsize_of`&`memsize_of_all`; #5040Yukihiro "Matz" Matsumoto
2020-07-19Use `c` specifier for `mrb_get_args`.Yukihiro "Matz" Matsumoto
2020-07-19Add new specifier `c` to `mrb_get_args`.Yukihiro "Matz" Matsumoto
`C` retrieves a `mrb_value` that refers a class/module. `c` retrieves a `struct RClass*` pointer to a class/module.
2020-07-19Fix `memsize_of_all` to count all objects if no argument given; #5040Yukihiro "Matz" Matsumoto
2020-07-19Fix `memsize_of_all` to count memory of subclass instances; #5040Yukihiro "Matz" Matsumoto
`ObjectSpace.memsize_of_all` takes a class and count memory size of all instances of the class and its subclasses (if any).
2020-07-19Merge pull request #5040 from RoryO/add-memsize-of-allYukihiro "Matz" Matsumoto
Add ObjectSpace.memsize_of_all
2020-07-18Avoid singleton classes with mrb_class_realRory O'Connell
2020-07-17Adding memsize_of_all docRory OConnell
2020-07-17Add ObjectSpace.memsize_of_allRory OConnell
2020-07-17Use `proc->env` to check `block_given?` if possible; fix #5039Yukihiro "Matz" Matsumoto
This bug has been there since mruby 1.4.0 (2018-04).
2020-07-17Fix indent of compiler conditions; #5032Yukihiro "Matz" Matsumoto
2020-07-17Fix `memsize_of` to count method table size; #5032Yukihiro "Matz" Matsumoto
Also avoid `mrb_funcall` to minimize VM recursion.
2020-07-17Fix `memsize_of` Fibers; #5032Yukihiro "Matz" Matsumoto
Memory size of a Fiber is calculated by stack size only in CRuby.
2020-07-17Add `const` to `irep` pointer in `os_memsize_of_irep`; #5032Yukihiro "Matz" Matsumoto
2020-07-17Remove recursive `memsize_of`; #5032Yukihiro "Matz" Matsumoto
This is enhancement from CRuby's `memsize_of`. We need to change the CRuby first for the enhancement.
2020-07-17Remove `MRB_TT_DATA` calculation of `memsize_of`; #5032Yukihiro "Matz" Matsumoto
2020-07-17Use `mrb_test` instead of `mrb_obj_eq`; #5032Yukihiro "Matz" Matsumoto
2020-07-17Fix `memsize_of` for fiber objects; #5032Yukihiro "Matz" Matsumoto
2020-07-17Fix `memsize_of` for string objects; #5032Yukihiro "Matz" Matsumoto
2020-07-17Merge pull request #5038 from dearblue/bidxYukihiro "Matz" Matsumoto
Fixed shift width for `MRB_ENV_SET_BIDX()`
2020-07-17Merge pull request #5032 from RoryO/add-objspace-memsize-ofYukihiro "Matz" Matsumoto
Add ObjectSpace.memsize_of
2020-07-16Fixed shift width for `MRB_ENV_SET_BIDX()`dearblue
ref c07f24cd1 and close #5035
2020-07-15mrb_ prefix conventionRory O'Connell
2020-07-14Clarify memsize_of documentationRory O'Connell
2020-07-14Finishing out memsize_of recursionRory O'Connell
2020-07-15Merge pull request #5036 from ↵Yukihiro "Matz" Matsumoto
shuujii/fix-build_dir-mrbgems-gem_init.c-generation-condition Fix `${build_dir}/mrbgems/gem_init.c` generation condition; ref #5010
2020-07-15Merge pull request #5037 from ↵Yukihiro "Matz" Matsumoto
shuujii/set-STDOUT.sync=true-when-testing-on-AppVeyor Set `STDOUT.sync=true` when testing on AppVeyor [skip travis]
2020-07-14Set `STDOUT.sync=true` when testing on AppVeyor [skip travis]KOBAYASHI Shuji
This issue is a correction error at 5a682bfc.
2020-07-14Fix `${build_dir}/mrbgems/gem_init.c` generation condition; ref #5010KOBAYASHI Shuji
The `${build_dir}/mrbgems/gem_init.c` generation condition has been changed at #5010, but it is somewhat insufficient, for example, there was a problem with `rake && rake test`, which was also regenerated in `rake test`.
2020-07-13Validate ensure stack presense before calculatingRory OConnell
2020-07-13C89 compiler mode fixesRory OConnell
2020-07-13Update tests for new calculationsRory OConnell
2020-07-13Calculating sizes of VM components for a FiberRory OConnell
2020-07-13Use object iv table size in calculationRory OConnell
2020-07-13Use size of hash's table in calculationRory OConnell
2020-07-13All values use page slot size in calculationRory OConnell
2020-07-13Merge pull request #5034 from dearblue/ssize_tYukihiro "Matz" Matsumoto
Fix `ssize_t` for mingw; ref #5030
2020-07-12Fix `ssize_t` for mingw; ref #5030dearblue
Legacy MinGW and MinGW-w64 had own `ssize_t`.
2020-07-11Merge pull request #5033 from dearblue/mrb_free_backtraceYukihiro "Matz" Matsumoto
Remove the prototype declaration `mrb_free_backtrace()`