summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2017-06-16Use `mrb_str_new()` instead of `malloc()`; ref #3701Yukihiro "Matz" Matsumoto
Otherwise the function may terminate and cause memory leaks.
2017-06-16Should not use `sizeof(buf)` when `buf` is `char*`; #3701Yukihiro "Matz" Matsumoto
2017-06-16Merge branch 'string-upto' of https://github.com/ksss/mruby into ↵Yukihiro "Matz" Matsumoto
ksss-string-upto
2017-06-16Allow `break` from a block called by `mrb_yield`; close #3359Yukihiro "Matz" Matsumoto
This means #3701 is now OK to merge.
2017-06-16Use `MRB_THROW` instead of `mrb_exc_raise`.Yukihiro "Matz" Matsumoto
2017-06-16Need to unshare env from top callinfo; fix #3685Yukihiro "Matz" Matsumoto
2017-06-15Call write barriers for stack-modified fibers; fix #3699Yukihiro "Matz" Matsumoto
2017-06-15Print the file name along with line number on syntax errors; fix #3698Yukihiro "Matz" Matsumoto
2017-06-15Prevent Fiber#initialize to be called twice; fix #3705Yukihiro "Matz" Matsumoto
2017-06-15Protect the last exception object from GC in `ecall`; fix #3702Yukihiro "Matz" Matsumoto
2017-06-15Mark the exception object in the final marking phase; ref #3702Yukihiro "Matz" Matsumoto
2017-06-15Save the register value in a local variable for ease of debugging.Yukihiro "Matz" Matsumoto
2017-06-15Ensure size of the stack before handling exceptions; fix #3693Yukihiro "Matz" Matsumoto
2017-06-15Ensure size of the stack in OP_CALL.Yukihiro "Matz" Matsumoto
2017-06-15Add helper functions to use gdb reverse-next.Yukihiro "Matz" Matsumoto
On my machine, gdb reverse-next does not work with memcpy and memset. Add naive implementation of those functions to override.
2017-06-15remove unused exception variables.Tomoyuki Sahara
2017-06-15Merge pull request #88 from christopheraue/masterTomoyuki Sahara
Fix for IO#read(n) with n > IO::BUF_SIZE
2017-06-14Use malloc instead of dynamic allocationksss
2017-06-14Fix arena overflow errorksss
2017-06-14Reimplement String#uptoksss
2017-06-13fixed #87: IO#read(n) with n > IO::BUF_SIZEChristopher Aue
2017-06-14Clear stack in OP_CALL; fix #3694Yukihiro "Matz" Matsumoto
2017-06-14Fixed uninitialized local variable bug; ref #3692Yukihiro "Matz" Matsumoto
2017-06-14The out-of-memory error should not be an instance of RuntimeError.Yukihiro "Matz" Matsumoto
And arena-overflow error as well. They should not be caught by `rescue` by default.
2017-06-14Avoid out-of-bound access of VM stack in OP_SENDB; fix #3692Yukihiro "Matz" Matsumoto
2017-06-13sizeof(optval) must be 1 for IP_MULTICAST_TTL & IP_MULTICAST_LOOP. fixes #34.Tomoyuki Sahara
2017-06-12Merge pull request #85 from ksss/readTomoyuki Sahara
Support outbuf argument for IO#read
2017-06-12Merge pull request #86 from ksss/writeTomoyuki Sahara
Reseek when write
2017-06-12Merge pull request #84 from ksss/posTomoyuki Sahara
To accurate `pos`
2017-06-12Reseek when writeksss
2017-06-12Support outbuf argument for IO#readksss
2017-06-11To accurate `pos`ksss
pos shouldn't cache because it's not controllable
2017-06-07Handles exceptions from code generation phase; fix #3695Yukihiro "Matz" Matsumoto
2017-06-07mruby 1.2.0 assumes test blocks return their results. master does not.Tomoyuki Sahara
2017-06-07Merge pull request #13 from ksss/unpack-utf8Tomoyuki Sahara
Support unpack template "U"
2017-06-05Merge pull request #80 from ksss/sysreadTomoyuki Sahara
IO#sysread Check for readable
2017-06-05Limit recursion level of `codegen()`; fix #3690Yukihiro "Matz" Matsumoto
2017-06-03Revert "Simplify rescue stack management; ref #3683"Yukihiro "Matz" Matsumoto
This reverts commit eb5a606fe209944d0757301edb331ed7ff0fd31f and 079f310fbc9c23b97f062230c32bd91ac65e4835. The rescue stack works differently from ensure stack, so the change caused #3686 and #3688. It might take long to solve the problems, so that I would revert the changes for now. Fix #3688
2017-06-03Prohibit changing generational mode during GC disabled; fix #3689Yukihiro "Matz" Matsumoto
2017-06-03Check if a block is a lambda before marking it orphan; ref #3640Yukihiro "Matz" Matsumoto
2017-06-03Add checks for `break from proc-closure`; fix #3640Yukihiro "Matz" Matsumoto
2017-06-02Make `break` in lambdas work as `return` according to CRuby behavior.Yukihiro "Matz" Matsumoto
2017-06-02Revert "Update NODE_BLOCK check logic in `void_expr_error`."Yukihiro "Matz" Matsumoto
This reverts commit 31e30686b0bd9333eb0593fb1fb43b9b99744517.
2017-06-02Fixed a bug that make a loop in singleton_class clone; fix #3687Yukihiro "Matz" Matsumoto
2017-06-02Update NODE_BLOCK check logic in `void_expr_error`.Yukihiro "Matz" Matsumoto
2017-06-02Restore `test/t/codegen.rb`Yukihiro "Matz" Matsumoto
2017-06-02Fixed a bug in `void_expr_error`.Yukihiro "Matz" Matsumoto
2017-06-02Add more precise void expression checks; ref #3686Yukihiro "Matz" Matsumoto
2017-06-02Remove tests which can not be compiled on CRuby.Yukihiro "Matz" Matsumoto
2017-06-02Adjust ridx if `mrb_yield` terminated by `break`; fix #3686Yukihiro "Matz" Matsumoto
This issue is related to #3640.