summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
AgeCommit message (Collapse)Author
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 #5032 from RoryO/add-objspace-memsize-ofYukihiro "Matz" Matsumoto
Add ObjectSpace.memsize_of
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-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-12Fix `ssize_t` for mingw; ref #5030dearblue
Legacy MinGW and MinGW-w64 had own `ssize_t`.
2020-07-11Merge pull request #5030 from RoryO/fix-compile-msvc-io-utf8Yukihiro "Matz" Matsumoto
Fix compiling mruby-io on msc with UTF8 enabled
2020-07-10downcase windows include file for mingw compatabilityRory OConnell
2020-07-10Need typedef of ssize_t for msc compilerRory OConnell
2020-07-10fix case scopes and variable namesRory OConnell
2020-07-09Initial ObjectSpace.memsize_of implementationRory OConnell
2020-06-30Merge pull request #5028 from RoryO/msvc-optimize-shuffle-bugYukihiro "Matz" Matsumoto
Work around MSC optimization generating non functional code with Array#shuffle
2020-06-29Work around more MSC optimzer bugsRory OConnell
2020-06-29Fix the bug that `mrbc` generates `a.rb.mrb` instead of `a.mrb`.Yukihiro "Matz" Matsumoto
The bug was introduced by 9dfe50f1d.
2020-06-26Reduce scope of volatile keyword for MSC bugRory OConnell
2020-06-26Narrower scope working around MSC bugRory OConnell
2020-06-26work around MSC optimization generating non functional codeRory OConnell
2020-06-25Use `snprintf` instead of `memcpy` in `mrbc.c`.Yukihiro "Matz" Matsumoto
2020-06-25Change flag names in preparation of `REnv` refactoring.Yukihiro "Matz" Matsumoto
2020-06-25Use `mrb_get_argc()` to improve performance.Yukihiro "Matz" Matsumoto
2020-06-20Fix potential buffer overflow in `sprintf.c`.Yukihiro "Matz" Matsumoto
2020-06-20Add `mrb_get_arg1()` that retrieves single (and only) argument.Yukihiro "Matz" Matsumoto
`mrb_get_arg1()` raises `ArgumentError` if the method does not receive one argument. And replaces all `mrb_get_args(mrb, "o", &arg)` by the new function.
2020-06-20Symbolify saved alias name to improve performance.Yukihiro "Matz" Matsumoto
2020-06-15Remove unused `MRB_TT_FILE`.Yukihiro "Matz" Matsumoto
2020-06-11Merge pull request #5023 from dearblue/nestingYukihiro "Matz" Matsumoto
Remove `mrb_assert()` in `Module.nesting`
2020-06-09Update `OP_HASH` generation to support big hash creation.Yukihiro "Matz" Matsumoto
2020-06-09Remove `mrb_assert()` in `Module.nesting`dearblue
The following code was causing SIGSEGV: ```ruby Module.method(:nesting).call ```
2020-06-09Need `build/XXX/mrbgems/mruby-test` directorydearblue
An error may occur when performing `rake clean all` or `rake clean test`. The directory is needed before writing to `mrbgems/mruby-test/assert.c`.
2020-06-05Revert part of #5019 (`mruby_io_test.c`) to honor #4987Yukihiro "Matz" Matsumoto
The issue was reported by @shuujii.
2020-06-05Add proper casts to silence VC warnings.Yukihiro "Matz" Matsumoto
2020-06-05Change arena index from `mrb_int` to `int`.Yukihiro "Matz" Matsumoto
2020-06-05Merge master.Hiroshi Mimaki
2020-06-04Add explicit cast to `DROP_PRECISION` macro in `rtional.c`.Yukihiro "Matz" Matsumoto
2020-06-04Add `mruby-complex` and `mruby-rational` to `default.gembox`.Yukihiro "Matz" Matsumoto
2020-06-04Add explicit cast to silence warnings on AppVeyor.Yukihiro "Matz" Matsumoto