- 18 Nov, 2020 9 commits
-
-
Yukihiro "Matz" Matsumoto authored
Check if irep->reps is NULL in lv_defined_p
-
Zhang Xiaohui authored
-
Yukihiro "Matz" Matsumoto authored
Use `mrb_int_value` instead of `mrb_fixnum_value` in `src/hash.c`
-
Yukihiro "Matz" Matsumoto authored
Remove unused `MRuby::Build#enable_{bin,}test=`
-
Yukihiro "Matz" Matsumoto authored
Check if irep->reps is NULL
-
KOBAYASHI Shuji authored
The writers seem to be unnecessary because `MRuby::Build#enable_{bin,}test` are used from the beginning.
-
Zhang Xiaohui authored
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
-
- 17 Nov, 2020 8 commits
-
-
Yukihiro "Matz" Matsumoto authored
I misunderstand the meaning of #4483. Sorry.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Fix deprecated `set-env` command error on GitHub Actions [ci skip]
-
KOBAYASHI Shuji authored
I tried `$GITHUB_PATH` and `$GITHUB_ENV` instead of `set-env`, but for some reason path was not recognized, so I changed to using `ACTIONS_ALLOW_UNSECURE_COMMANDS`.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
- Remove `mrb_ssize` - Fix `MRB_FIXNUM_{MIN,MAX}` to 32 bits on `MRB_NAN_BOXING`
-
Yukihiro "Matz" Matsumoto authored
In addition, `include/mruby.h` will be scanned for error class symbols.
-
- 16 Nov, 2020 9 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
- `MRB_64BIT` and `MRB_INT32` - `MRB_32BIT` and `MRB_INT64`
-
Yukihiro "Matz" Matsumoto authored
Merge pull request #5137 from shuujii/use-uintptr_t-instead-of-unsigned-long-in-include-mruby-boxing_word.h Use `uintptr_t` instead of `unsigned long` in `include/mruby/boxing_word.h`
-
Yukihiro "Matz" Matsumoto authored
Avoid undefined behavior
-
Yukihiro "Matz" Matsumoto authored
Simplify `obj_free`
-
KOBAYASHI Shuji authored
### ASAN report (`MRB_INT32`) ```console $ bin/mruby -ve '-0x40000000' mruby 3.0.0preview (2020-10-16) 00001 NODE_SCOPE: 00001 NODE_BEGIN: 00001 NODE_NEGATE: 00001 NODE_INT 40000000 base 16 irep 0x6070000001e0 nregs=2 nlocals=1 pools=0 syms=0 reps=0 iseq=9 file: -e /mruby/src/codedump.c:173:49: runtime error: left shift of 49152 by 16 places cannot be represented in type 'int' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /mruby/src/codedump.c:173:49 in 1 000 OP_LOADI32 R1 -1073741824 1 006 OP_RETURN R1 1 008 OP_STOP /mruby/src/vm.c:1138:7: runtime error: left shift of 49152 by 16 places cannot be represented in type 'mrb_int' (aka 'int') SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /mruby/src/vm.c:1138:7 in ```
-
KOBAYASHI Shuji authored
-
KOBAYASHI Shuji authored
`mrb_bool` on LLP64 environment seems to become false if, for example, `mrb_value` is a pointer whose lower 32 bits are 0.
-
- 15 Nov, 2020 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
Fix paths of gem files to be scanned for presym
-
Yukihiro "Matz" Matsumoto authored
Fix that large integer is not GCed with Word-boxing
-
KOBAYASHI Shuji authored
When building from outside `MRUBY_ROOT` (e.g. `rake -f`), gem files were not scanned.
-
KOBAYASHI Shuji authored
### Example (32-bit Word-boxing) ```ruby # example.rb int_count = ObjectSpace.count_objects[:T_INTEGER]||0 int = 1<<30 p (ObjectSpace.count_objects[:T_INTEGER]||0) - int_count int = nil GC.start p (ObjectSpace.count_objects[:T_INTEGER]||0) - int_count ``` #### Before this patch: ```console $ bin/mruby example.rb 1 1 ``` #### After this patch: ```console $ bin/mruby example.rb 1 0 ```
-
- 14 Nov, 2020 10 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Fix overflow detection in integer operations with `MRB_WORD_BOXING`. This bug made `1073741824 == 1073741824+0` to be `false` on 32bit platforms.
-
Yukihiro "Matz" Matsumoto authored
Should raise `RangeError` if the operation overflows.
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Remove redundant command execution in `header_search_paths`
-
KOBAYASHI Shuji authored
There is no need to execute command in duplicate for the same reason as #5128.
-