summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2018-04-19CRuby2.6 stops deprecating `String#lines` with a block.Yukihiro "Matz" Matsumoto
`String#lines` (with a block) is now implemented in Ruby.
2018-04-19`String#lines` with a block is deprecated style.Yukihiro "Matz" Matsumoto
2018-04-18`ary_dup()` should not use `ary_replace(); fix #4004Yukihiro "Matz" Matsumoto
Otherwise the duplicated object may have shared entities that should not be modified in-line.
2018-04-18A new function `ary_from_values()`; ref #4004Yukihiro "Matz" Matsumoto
2018-04-18`mrb_io_initialize_copy` should not free existing `fptr`; fix #4005Yukihiro "Matz" Matsumoto
When arguments `copy` and `orig` are the same object.
2018-04-18`mrb_dup()` should fail if `fd` is a negative integer; ref #4005Yukihiro "Matz" Matsumoto
2018-04-18Turn off major GC mode before full GC; fix #4000Yukihiro "Matz" Matsumoto
2018-04-18Avoid unnecessary object allocation (addrinfo) in `_accept`; ref #3999Yukihiro "Matz" Matsumoto
2018-04-17Merge pull request #4003 from take-cheeze/int32_overflowYukihiro "Matz" Matsumoto
Fallback to float when compiled binary with 64bit compiler.
2018-04-17Fallback to float when caompiled binary with 64bit compiler.Takeshi Watanabe
closes #3997.
2018-04-17`Socket.accept` should have returned `[fd, addr]`; fix #3999Yukihiro "Matz" Matsumoto
2018-04-17Make `ary_replace()` to share entry buffers if possible.Yukihiro "Matz" Matsumoto
2018-04-17Make `ary_concat()` to replace the receiver when it is empty.Yukihiro "Matz" Matsumoto
2018-04-17Make `ary_replace()` to take `struct RArray*` argument.Yukihiro "Matz" Matsumoto
2018-04-17Define `SOL_IP` and `SOL_TCP`; ref #3999Yukihiro "Matz" Matsumoto
2018-04-17Implement `Array#__svalue` in C.Yukihiro "Matz" Matsumoto
2018-04-17Fix `use after free in File#initilialize_copy`; fix #4001Yukihiro "Matz" Matsumoto
The bug and the fix were reported by https://hackerone.com/pnoltof
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.