summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-objectspace
AgeCommit message (Collapse)Author
2021-03-22Reorganize types for `ObjectSpace.count_objects`KOBAYASHI Shuji
#### Addition - T_COMPLEX - T_RATIONAL #### Deletion - T_FALSE - T_FREE - T_TRUE - T_SYMBOL - T_UNDEF
2021-01-26Revert "Minimize the changes in #5277"Yukihiro "Matz" Matsumoto
This reverts commit dc51d89ac22acc60b9bfeed87115863565b74085.
2021-01-22Minimize the changes in #5277Yukihiro "Matz" Matsumoto
Instead of including `mruby/presym.h` everywhere, we provided the fallback `mruby/presym.inc` under `include/mruby` directory, and specify `-I<build-dir>/include` before `-I<top-dir>/include` in `presym.rake`. So even when someone drops `-I<build-dir>/include` in compiler options, it just compiles without failure.
2021-01-11Avoid including `presym.inc` in existing header filesKOBAYASHI Shuji
Addressed an issue where existing programs linking `libmruby.a` could only be built by adding `<build-dir>/include` to compiler's include path.
2020-10-12Rename `MRB_TT_FIXNUM` to `MRB_TT_INTEGER`.Yukihiro "Matz" Matsumoto
We still have `#define MRB_TT_FIXNUM MRB_TT_INTEGER` for compatibility.
2020-10-12Add `MRB_SYM()` for inline symbols.Yukihiro "Matz" Matsumoto
2020-07-24Merge pull request #5045 from dearblue/memsize_ofYukihiro "Matz" Matsumoto
Improve `mruby-os-memsize`
2020-07-23`ObjectSpace.count_objects` to support `MRB_TT_ISTRUCT`; #5046Yukihiro "Matz" Matsumoto
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-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-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-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-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-15mrb_ prefix conventionRory O'Connell
2020-07-14Clarify memsize_of documentationRory O'Connell
2020-07-14Finishing out memsize_of recursionRory O'Connell
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-10fix case scopes and variable namesRory OConnell
2020-07-09Initial ObjectSpace.memsize_of implementationRory OConnell
2020-06-15Remove unused `MRB_TT_FILE`.Yukihiro "Matz" Matsumoto
2019-09-16Entrust "no block given" error to `mrb_get_args()`dearblue
Some error messages will be changed.
2019-06-02Fix missing assertions in `mruby-objectspace` testKOBAYASHI Shuji
2019-01-03Remove `Kernel#class_defined?` which is not available in CRuby; #3829Yukihiro "Matz" Matsumoto
2018-07-30Keyword argument implemented.Yukihiro "Matz" Matsumoto
2017-11-19Invoke `mrb_full_gc()` before `ObjectSpace.count_objects`.Yukihiro "Matz" Matsumoto
2017-04-20Allow `mrb_objspace_each_objects()` to break iteration; ref #3359Yukihiro "Matz" Matsumoto