summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-04-14Invoke full GC when too many objects allocated during GC; fix #3998Yukihiro "Matz" Matsumoto
When object allocation rate during incremental GC is too high, the `gc->majorgc_old_threshold` becomes too big. This means major GC start slower and old objects stay longer (and consume too much memory).
2018-04-14Change `MAJOR_GC_INC_RATIO` to 120; ref #3998Yukihiro "Matz" Matsumoto
Because 200% is consumes too much memory for some cases.
2018-04-14Remove `DEFAULT_` from `DEFAULT_MAJOR_GC_INC_RATIO`; ref #3998Yukihiro "Matz" Matsumoto
Because unlike other GC ratio constants, it's not a default value.
2018-04-13No longer need to insert write barriers for fibers.Yukihiro "Matz" Matsumoto
Those barriers are inserted to fix #3699 but all living fibers are marked from `mark_context()` anyway now.
2018-04-13The #3871 fix caused wrong `break from proc-closure` error; fix #3996Yukihiro "Matz" Matsumoto
2018-04-13Add `fallthrough` comment to silence gcc warning.Yukihiro "Matz" Matsumoto
2018-04-13Silence gcc initializer warning.Yukihiro "Matz" Matsumoto
2018-04-11Check length of env stack before accessing upvar; fix #3995Yukihiro "Matz" Matsumoto
2018-04-10Merge pull request #3994 from kou/fix-windows-build-error-on-dll-buildYukihiro "Matz" Matsumoto
Fix build error on Windows with MRB_BUILD_AS_DLL
2018-04-10Fix build error on Windows with MRB_BUILD_AS_DLLKouhei Sutou
Error message: C:\projects\groonga\vendor\mruby-source\include\mruby.h(1098): error C2375: 'mrb_gc_arena_save' : redefinition; different linkage [C:\projects\groonga\vendor\mruby\mruby.vcxproj] C:\projects\groonga\vendor\mruby-source\include\mruby.h(1083) : see declaration of 'mrb_gc_arena_save' C:\projects\groonga\vendor\mruby-source\include\mruby.h(1099): error C2375: 'mrb_gc_arena_restore' : redefinition; different linkage [C:\projects\groonga\vendor\mruby\mruby.vcxproj] C:\projects\groonga\vendor\mruby-source\include\mruby.h(1084) : see declaration of 'mrb_gc_arena_restore'
2018-04-05Merge pull request #3991 from take-cheeze/fix_eval_env_gcYukihiro "Matz" Matsumoto
Fix possible heap use after free in `mrb_exec_irep` and stack expanding.
2018-04-05Adjust environment when `mrb_exec_irep` happened.Takeshi Watanabe
2018-04-04Merge pull request #3990 from mimaki/fix-mrdb-illegal-freeYukihiro "Matz" Matsumoto
Fixed memory failure on mruby debugger.
2018-04-04Fixed test case for mruby ddebugger.mimaki
2018-04-04Fixed illegal memory operation on mruby debugger.mimaki
2018-03-28Merge pull request #3988 from ksss/each_with_objectYukihiro "Matz" Matsumoto
Refactoring for `Enumerable#each_with_object`
2018-03-27Refactoring for `Enumerable#each_with_object`ksss
`each_with_object` arity should be 1
2018-03-27Merge pull request #3987 from ksss/enum-lazy-zipYukihiro "Matz" Matsumoto
Reimplement `Enumerable#zip` with Enumerator
2018-03-27Merge pull request #3986 from ksss/enum-zipYukihiro "Matz" Matsumoto
Support block yielding for Enumerable#zip
2018-03-27Reimplement `Enumerable#zip` with Enumeratorksss
for fix some specs - [passes each element of the result array to a block and return nil if a block is given](https://github.com/ruby/spec/blob/a585ec35d185435e5c11f371ba4ed2a29d8817bd/core/enumerable/zip_spec.rb#L11-L17) - [converts arguments to arrays using #to_ary](https://github.com/ruby/spec/blob/a585ec35d185435e5c11f371ba4ed2a29d8817bd/core/enumerable/zip_spec.rb#L23-L27) - [converts arguments to enums using #to_enum](https://github.com/ruby/spec/blob/a585ec35d185435e5c11f371ba4ed2a29d8817bd/core/enumerable/zip_spec.rb#L29-L34) - [gathers whole arrays as elements when each yields multiple](https://github.com/ruby/spec/blob/a585ec35d185435e5c11f371ba4ed2a29d8817bd/core/enumerable/zip_spec.rb#L36-L39)
2018-03-27Should raise TypeError instead of NoMethodErrorksss
2018-03-27Support block yielding for `Enumerable#zip`ksss
2018-03-26Merge pull request #3985 from take-cheeze/revert_ai_protocolYukihiro "Matz" Matsumoto
Revert #3984 .
2018-03-26Revert #3984 .Takeshi Watanabe
2018-03-25Merge pull request #3984 from take-cheeze/merge_socketYukihiro "Matz" Matsumoto
Catch up with latest mruby-socket.
2018-03-25Merge commit '36d016afd663d34607c843d03371bedb71efa34e'Takeshi Watanabe
2018-03-24Merge pull request #3982 from take-cheeze/fix_str_cmpYukihiro "Matz" Matsumoto
Return nil if type differ in `String#<=>`.
2018-03-24Return nil if type differ in `String#<=>`.Takeshi Watanabe
2018-03-22Merge pull request #3974 from take-cheeze/repo_pathYukihiro "Matz" Matsumoto
Add `:path` option for git repository.
2018-03-22Add `:path` option for git repository.Takeshi Watanabe
2018-03-22Need to keep block argument in `mrb_exec_irep`; fix #3973Yukihiro "Matz" Matsumoto
2018-03-20Needed to set `ci->proc` in `OP_SUPER`; fix #3966Yukihiro "Matz" Matsumoto
2018-03-20Merge pull request #3972 from take-cheeze/fix_ary_set_len_assertYukihiro "Matz" Matsumoto
Set array length after expanding capacity.
2018-03-19Set array length after expanding capacity.Takeshi Watanabe
2018-03-16Set protocol of AddrInfoTomoyuki Sahara
backport https://github.com/mruby/mruby/pull/3891
2018-03-16`__sort_sub__` is a method defined in `Array`; fix #3970Yukihiro "Matz" Matsumoto
Reorganize `__sort_sub__` arguments.
2018-03-16Merge pull request #3957 from take-cheeze/fix_io_readYukihiro "Matz" Matsumoto
Pass same mode parameter to `IO.sysopen` and `IO.open` in `IO.read`.
2018-03-16Needed to pass sort block.Yukihiro "Matz" Matsumoto
2018-03-16Update `mrb_get_args` reference comment; ref #3963Yukihiro "Matz" Matsumoto
2018-03-16Merge pull request #3969 from hfm/patch-1Yukihiro "Matz" Matsumoto
Fix tinytypo
2018-03-16Fix tinytypoOkumura Takahiro
2018-03-12Merge pull request #3963 from dearblue/forced-block-argumentsYukihiro "Matz" Matsumoto
Give me block by mrb_get_args() (forced block arguments)
2018-03-05Merge pull request #3965 from take-cheeze/patch-1Yukihiro "Matz" Matsumoto
Add same fix as #3964 to lib/mruby/gem.rb .
2018-03-05Add same fix as #3964 to lib/mruby/gem.rb .Takeshi Watanabe
2018-03-05Merge pull request #3964 from take-cheeze/patch-1Yukihiro "Matz" Matsumoto
Close `mrb_state` before error exit.
2018-03-05Close `mrb_state` before exit.Takeshi Watanabe
2018-03-05Close on exception too.Takeshi Watanabe
2018-03-04fix && to &! in mrb_get_args()dearblue
2018-03-04add forced block arguments feature to mrb_get_argsdearblue
2018-03-02Add `mrb_fiber_alive_p` to C API.Yukihiro "Matz" Matsumoto