summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
2017-05-29Protect the returning value in OP_RETURN; fix #3669Yukihiro "Matz" Matsumoto
Even though the returning value is retrieved from the stack, it may be freed if GC is caused during stack rewinding (e.g. ensure calls).
2017-05-29Mark the current context (not root) in final marking.Yukihiro "Matz" Matsumoto
2017-05-27Fixed rounding functions (round,ceil,floor,truncate) in MRB_INT64.Yukihiro "Matz" Matsumoto
They didn't work well with inexact numbers (inf,nan). Fix #3671
2017-05-27Unwind callinfo (mrb->c->ci) when a fiber termitates with error.Yukihiro "Matz" Matsumoto
Fix #3668
2017-05-27Avoid unsharing env when context (mrb->c) differs; ref #3668Yukihiro "Matz" Matsumoto
2017-05-26Use RData instead of String to represent backtrace.Yukihiro "Matz" Matsumoto
2017-05-26Distinguish OP_R_NORMAL and OP_R_RETURN.Yukihiro "Matz" Matsumoto
2017-05-26Invoke ensure clauses on Fiber termination; fix #3666Yukihiro "Matz" Matsumoto
Related to #3662
2017-05-26Add new range check macro FIXABLE_FLOAT(); ref #3652Yukihiro "Matz" Matsumoto
When MRB_INT64, valid value range of mrb_int is bigger than double, which only has 53 bits significant precision.
2017-05-26Fix indentation in mrb_init_numeric()Yukihiro "Matz" Matsumoto
2017-05-26fixup! Let Fixnum#{ceil,floor,round,truncate} to return itself; #3652Yukihiro "Matz" Matsumoto
2017-05-26Let Fixnum#{ceil,floor,round,truncate} to return itself; #3652Yukihiro "Matz" Matsumoto
2017-05-26Try our own `ipow()` if both base and exp are fixnums; fix #3652Yukihiro "Matz" Matsumoto
2017-05-25Revert 01f7825; fix #3650Yukihiro "Matz" Matsumoto
Redundant `mark_context() is far better than crashes.
2017-05-25Avoid marking possibly freed stack; #3550 #3612Yukihiro "Matz" Matsumoto
2017-05-25Revert "Use env preserved in Proc structure in ecall(); fix #3612"Yukihiro "Matz" Matsumoto
This reverts commit e26e11860466676e5713fa0d9ab268ea8dbdcef9. Fix #3664
2017-05-25Invoke ensure clauses before switching context from fibers; fix #3662Yukihiro "Matz" Matsumoto
2017-05-25Clear top level env in `mrb_top_run()`; fix #3643Yukihiro "Matz" Matsumoto
2017-05-25Avoid unsharing stack if env refers top-level; ref #3643Yukihiro "Matz" Matsumoto
2017-05-25Check env stack length before `OP_SETUPVAR`; ref #3643Yukihiro "Matz" Matsumoto
2017-05-25Check backtrace info may not be set (esp. NoMemError); fix #3663Yukihiro "Matz" Matsumoto
2017-05-25Free given pointer if `realloc()` fails; fix #3658Yukihiro "Matz" Matsumoto
2017-05-25Avoid using `mrb_raise()` in `mrb_vm_exec()`; ref #3660Yukihiro "Matz" Matsumoto
2017-05-25Preserve the current pc before `method_missing()`; fix #3660Yukihiro "Matz" Matsumoto
2017-05-23Simplify backtrace mechanism; fix #3633 #3634 #3644Yukihiro "Matz" Matsumoto
Instead of preserving a backtrace in `mrb_state`, `mrb_exc_set` keeps packed backtrace in an exception object. `#backtrace` unpacks it to an array of strings.
2017-05-23Remove class info from backtrace lines.Yukihiro "Matz" Matsumoto
2017-05-23Support the case when the backtrace is not an array.Yukihiro "Matz" Matsumoto
2017-05-23Use index in `each_object`.Yukihiro "Matz" Matsumoto
2017-05-23Type check before `print_backtrace()`Yukihiro "Matz" Matsumoto
2017-05-23Update comments regarding Exception#to_strYukihiro "Matz" Matsumoto
2017-05-15Avoid call to_s during backtrace traversalCraig Lehmann
2017-05-13Make string embad from sharedksss
2017-05-05Adjust to the optimum typeksss
2017-04-25Avoid duplicated `envadjust()` of env stacks; fix #3637Yukihiro "Matz" Matsumoto
2017-04-25Merge pull request #3637 from dabroz/fix-32-bitYukihiro "Matz" Matsumoto
Restore 32-bit OSX builds
2017-04-25Silence warnings caused by implicit type casting.Yukihiro "Matz" Matsumoto
2017-04-25Stop invoking GC before `each_object` to avoid test failure; #3616Yukihiro "Matz" Matsumoto
2017-04-25Prevent GC during `each_object`; fix #3616Yukihiro "Matz" Matsumoto
2017-04-25Avoid use of `snprintf()` when DISABLE_STDIO is set; fix #3632Yukihiro "Matz" Matsumoto
ref #3492 #3515 #3517
2017-04-25Should terminate nested iterations in each_object; ref #3359Yukihiro "Matz" Matsumoto
2017-04-25Revert "Disable GC during `gc_each_objects()`; fix #3616"Yukihiro "Matz" Matsumoto
This reverts commit d2cad9ac5b8db89fc9d21f5795846f983236798c.
2017-04-25Use fiber marking instead of `mark_context`.Yukihiro "Matz" Matsumoto
To avoid redundant `mark_context()`.
2017-04-24Revert "Simplify pointer calculation in `envadjust`."Tomasz Dąbrowski
This reverts commit a1d32af91692c2b624e9c04fcd94aa958dbba626.
2017-04-22Small cosmetic changes.Yukihiro "Matz" Matsumoto
2017-04-22Use env preserved in Proc structure in ecall(); fix #3612Yukihiro "Matz" Matsumoto
2017-04-22Keep reference to mrb_context from env; fix #3619Yukihiro "Matz" Matsumoto
2017-04-21Simplify pointer calculation in `envadjust`.Yukihiro "Matz" Matsumoto
2017-04-21Revert e8dca6b03; fix #3550Yukihiro "Matz" Matsumoto
Reopens #3612.
2017-04-21Fixed a possible memory leak.Yukihiro "Matz" Matsumoto
2017-04-21Revert ae4217e81; fix #3619Yukihiro "Matz" Matsumoto
Reopens #3550. Those 2 issues are exclusive.