Yukihiro "Matz" Matsumoto
|
a332ea1f67
|
Merge pull request #6019 from jbampton/docs-remove-duplicate-cve
docs: remove duplicate CVE from list
|
2023-06-13 13:47:55 +09:00 |
|
John Bampton
|
36f2d1733b
|
docs: remove duplicate CVE from list
|
2023-06-13 13:27:23 +10:00 |
|
Yukihiro "Matz" Matsumoto
|
17720c9b7b
|
variable.c (const_get): avoid mrb_funcall if possible
Directly call mrb_const_missing() if const_missing is not overridden.
|
2023-06-12 23:47:35 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
89f7bb1056
|
use more lightweight mrb_funcall_argv instead of mrb_funcall_id
|
2023-06-12 14:22:04 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
39a29a7de1
|
mruby-bin-debugger/mrbgem.rake: fix defines configuration
`spec.build.defines` should be update inline. Otherwise, configuration
may differ from file to file.
|
2023-06-12 13:07:57 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
a867fb0703
|
class.c: remove methID from the example and codespell dict
|
2023-06-09 17:56:21 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b6181ae58a
|
mruby/gc.h: reorder mrb_gc members to reduce alignment gaps
|
2023-06-09 17:19:09 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
727a2ec793
|
gc.c (obj_free): use simpler is_dead()
`mrb_object_dead_p()` is heavier if the pointer is (or used to be) an
object in the heaps.
|
2023-06-07 17:03:32 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
336b7efb41
|
gc.c (mrb_incremental_gc): clarify the if-condition
|
2023-06-06 11:29:48 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
8b8e186688
|
gc.h: rename majorgc_old_threashold to oldgen_threashold
This field means that if you have more old generation objects than
this value, major GC mode will be turned on.
|
2023-06-06 11:26:35 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
b47c8b738a
|
gc.c (clear_all_old): fix a generational GC bug
This issue was caused by 375d22b that introduced a serious mark
leakage in the generational GC mode.
|
2023-06-06 07:29:41 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
0bb08718b8
|
gc.c (incremental_marking_phase): clear gcnext for debugging
|
2023-06-05 23:31:36 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
6958368daa
|
gc.c (gc_mark_children): declare a loop variable in the for-statement
|
2023-06-05 23:30:33 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
623cda5521
|
gc.c: make color macros literals for debugging clarity
|
2023-06-05 16:00:04 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
f07281a026
|
Revert "object.h: make GC color uint8_t that fits in 3 bits"
The change made the size of mruby data types bigger on Win.
This reverts commit afcf7fc86d.
|
2023-06-03 16:55:58 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
93648fc954
|
gc.c (mrb_env_unshare): fix a write barrier bug
|
2023-06-02 11:00:13 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
9369679e36
|
vm.c: reduce local variables
|
2023-06-01 09:14:39 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
5b61407414
|
class.c (prepare_singleton_class): defer method table allocation
|
2023-06-01 09:13:44 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
0d8545e01b
|
error.c (frozen_error): change specifier from %t to %T
- `%t` prints type (class) of the argument
- `%T` prints real class of the argument, skipping TT_ICLASS, etc.
|
2023-05-31 08:35:54 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
e6c89ef1f9
|
mruby.h: make mrb_check_frozen to a normal function from inline one
|
2023-05-31 08:33:58 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
ccdf75c1c2
|
error.c: a new function mrb_check_frozen_value()
|
2023-05-31 08:31:13 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
8b39a7825d
|
Reduce unnecessary mrb_obj_ptr() to mrb_check_frozen()
|
2023-05-31 08:29:12 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
afcf7fc86d
|
object.h: make GC color uint8_t that fits in 3 bits
|
2023-05-31 08:27:23 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
8873229312
|
codedump.c: fix indentation of OP_SCLASS
|
2023-05-30 16:08:38 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
6eedf1065d
|
numeric.c (flo_idiv): add mrb_check_num_exact
|
2023-05-30 08:54:44 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
795044f82c
|
internal.h: add mrb_check_num_exact prototype to the header
|
2023-05-30 08:54:05 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
e84060a900
|
string.c: rename function str_check_too_big -> str_check_length
|
2023-05-30 08:40:16 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
f813b5d1d8
|
string.c (str_new): add string length check
|
2023-05-29 23:18:44 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
aecaaf011f
|
string.c (mrb_str_resize): refactor string length check
|
2023-05-29 23:18:19 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
0a6e1c0ffe
|
class.c (copy_class): copy source flags as well (except frozen flag)
|
2023-05-29 22:59:05 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
c0c4219b25
|
class.c (copy_class): avoid copying method table in some cases
To prevent memory leaks
|
2023-05-29 22:57:59 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
bba2fd84ea
|
class.h: instance type should occupy 5 bits in flags
|
2023-05-29 09:27:08 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
e4e3740688
|
class.c (init_copy): add an assertion
|
2023-05-29 09:26:45 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
a02894afa3
|
small cosmetic changes
|
2023-05-29 09:26:45 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
0ffe9b987a
|
class.c (mrb_prepend_module): c should not be MRB_TT_ICLASS
|
2023-05-29 09:26:44 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
6ac10a01e4
|
Merge pull request #6014 from dearblue/setup_debug.1
Fixed visibility of `MRuby::Command::Compiler#setup_debug`
|
2023-05-29 09:26:32 +09:00 |
|
dearblue
|
a7bee69452
|
Fixed visibility of MRuby::Command::Compiler#setup_debug
In #5977 it was incorrectly set to `private`.
|
2023-05-26 21:37:29 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
7f887f1928
|
class.c (mrb_class_initialize): check duplicated initialization
|
2023-05-26 12:48:34 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
8914c2318c
|
Merge pull request #6013 from CaptainJet/master
Fix Android toolchain
|
2023-05-26 12:47:08 +09:00 |
|
Robert Rowe
|
fb727a169f
|
Spacing fix
|
2023-05-25 19:47:32 -07:00 |
|
Robert Rowe
|
bcb5674676
|
Update Android building
New minimum SDK. NDK longer supports mips, plain armeabi, nor GCC. Fix tooling.
|
2023-05-25 19:45:14 -07:00 |
|
Yukihiro "Matz" Matsumoto
|
2ad3f0e34b
|
vm.c (mrb_yield_with_class): keep mid of the callee
Otherwise `super` from within blocks may call wrong methods.
|
2023-05-26 11:17:51 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
9040baa270
|
vm.c (mrb_yield_with_class): avoid redundant initialization of mid
|
2023-05-26 11:14:58 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
2b3ecef66c
|
mruby-data/data.c: use mrb_ary_ref instead of direct memory access
Avoid out-of-bound memory access when actual data object size is smaller
than the number of data members.
|
2023-05-25 09:05:03 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
9bc9ff771d
|
mruby-data/data.c (mrb_data_s_def): simplify the code
|
2023-05-25 09:05:03 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
05f4831751
|
mruby-data/data.c (mrb_data_s_def): add member duplication check
|
2023-05-25 09:05:03 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
eeab289f87
|
mruby-data/data.c (mrb_data_ref): avoid out-of-bound access
|
2023-05-25 09:05:02 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
de69190df5
|
mruby-struct/struct.c: need to copy the argument array
Just in case for stack reallocations.
|
2023-05-25 09:05:02 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
e05ac91217
|
mruby-struct/struct.c: update the behavior when actual size differs
Assertions may be false and terminate the whole process when actual size
for struct objects are different.
|
2023-05-25 09:05:02 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
f50e40f291
|
mruby-struct/struct.c: use mrb_ary_set to simplify the code
We don't need to do `mrb_struct_modify()` and calling write barriers by
ourselves for the small performance issue.
|
2023-05-25 09:05:02 +09:00 |
|