aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Added `get_real` interfaceNobuyoshi Nakada2020-09-074-0/+20
|
* Added rb_int_pair_to_realNobuyoshi Nakada2020-09-072-2/+7
|
* separate rb_random_tNobuyoshi Nakada2020-09-078-120/+773
| | | | | | | | | | | | * random.c: separate abstract rb_random_t and rb_random_mt_t for Mersenne Twister implementation. * include/ruby/random.h: the interface for extensions of Random class. * DLL imported symbol reference is not constant on Windows. * check if properly initialized.
* Random::BaseNobuyoshi Nakada2020-09-071-6/+13
| | | | | * random.c (InitVM_Random): introduce abstract super class Random::Base.
* .github: try GitHub Container Registry卜部昌平2020-09-071-1/+1
| | | | | | It is natural for a CI running on GitHub to use GitHub's facility. See also https://github.blog/2020-09-01-introducing-github-container-registry/
* * 2020-09-07 [ci skip]git2020-09-071-1/+1
|
* [Feature #17157] removed -T command line optionNobuyoshi Nakada2020-09-071-12/+0
|
* Increase timeout for GitHub Actions.Samuel Williams2020-09-062-2/+2
|
* Add `*.md` to doc/.document [ci skip]Kazuhiro NISHIYAMA2020-09-061-0/+1
|
* Make it possible to dump and load an exception objectYusuke Endoh2020-09-062-0/+77
| | | | | | | | | | | | | | | | | | | | | A backtrace object in an exception had never supported marshalling correctly: `Marshal.load(Marshal.dump(exc)).backtrace_locations` dumped core. An Exception object has two hidden instance varibles for backtrace data: one is "bt", which has an Array of Strings, and the other is "bt_locations", which has an Array of Thread::Backtrace::Locations. However, Exception's dump outputs data so that the two variables are the same Array of Strings. Thus, "bt_locations" had a wrong-type object. For the compatibility, it is difficult to change the dump format. This changeset fixes the issue by ignoring data for "bt_locations" at the loading phase if "bt_locations" refers to the same object as "bt". Future work: Exception's dump should output "bt_locations" appropriately. https://bugs.ruby-lang.org/issues/17150
* Add `RB_` prefix for size_t to number conversion.Samuel Williams2020-09-061-12/+17
|
* Fixed some typos in ractor.md (#3522)Ashwin Elangovan2020-09-051-20/+20
|
* * 2020-09-06 [ci skip]git2020-09-061-1/+1
|
* Fix typos [ci skip]Kazuhiro NISHIYAMA2020-09-061-3/+3
|
* common.mk: UNALIGNED_MEMBER_ACCESS needs internal/warnings.h on some platformsNobuyoshi Nakada2020-09-051-0/+5
|
* update-deps: ruby-runner is not a targetNobuyoshi Nakada2020-09-051-1/+1
|
* Removed useless castsNobuyoshi Nakada2020-09-051-6/+5
|
* Fix typo in ractor.mdandrewmelis2020-09-051-1/+1
|
* Fix typos in Ractor README.Tom Schady2020-09-041-2/+2
|
* * 2020-09-05 [ci skip]git2020-09-051-1/+1
|
* break around function definition [ci skip]Nobuyoshi Nakada2020-09-051-1/+3
|
* Sort links in NEWS.md by URI [ci skip]Nobuyoshi Nakada2020-09-041-12/+12
|
* Added Symbol#nameNobuyoshi Nakada2020-09-043-0/+14
| | | https://bugs.ruby-lang.org/issues/16150#change-87446
* Updated dependencyNobuyoshi Nakada2020-09-041-0/+1
|
* Fixed heap-use-after-free on racterNobuyoshi Nakada2020-09-042-0/+11
|
* lib/ostruct.rb: Revert "To use RuntimeError instead of FrozenError for old ↵Marc-Andre Lafortune2020-09-042-6/+4
| | | | | | ruby versions." This reverts commit 4cd1fc8b3559353069860eee90b1b5bade013917.
* check multi_ractor mode at main_pKoichi Sasada2020-09-043-6/+26
| | | | | | | | | rb_ractor_main_p() need to access to the ractor pointer in TLS. However it is slow operation so that we need to skip this check if it is not multi-ractor mode (!ruby_multi_ractor). This performance regression is pointed at https://bugs.ruby-lang.org/issues/17100#note-27
* Initialize loop variables of list_for_each for MS VCNobuyoshi Nakada2020-09-043-5/+5
|
* Avoid potential for rb_raise() while crashingAlan Wu2020-09-031-1/+10
| | | | | | rb_obj_raw_info is called while printing out crash messages and sometimes called during garbage collection. Calling rb_raise() in these situations is undesirable because it can start executing ensure blocks.
* * 2020-09-04 [ci skip]git2020-09-041-1/+1
|
* don't use toplevel returnKoichi Sasada2020-09-041-2/+5
| | | | | Toplevel return is supported after Ruby 2.4, so don't use it for older BASERUBY.
* skip Ractor tests on Compiler testsKoichi Sasada2020-09-031-1/+6
| | | | | | This implementation has memory corruption errors so and it causes BUG on rare occasions. This commit skips suspect tests on Github actions Compiler tests.
* Introduce Ractor mechanism for parallel executionKoichi Sasada2020-09-0341-784/+5952
| | | | | | | | | | | | | | | | This commit introduces Ractor mechanism to run Ruby program in parallel. See doc/ractor.md for more details about Ractor. See ticket [Feature #17100] to see the implementation details and discussions. [Feature #17100] This commit does not complete the implementation. You can find many bugs on using Ractor. Also the specification will be changed so that this feature is experimental. You will see a warning when you make the first Ractor with `Ractor.new`. I hope this feature can help programmers from thread-safety issues.
* Hoisted out warn_deprecatedNobuyoshi Nakada2020-09-031-25/+14
|
* Fix a typo [ci skip]Kazuhiro NISHIYAMA2020-09-031-1/+1
|
* Don't call to_s in const_setAlan Wu2020-09-031-1/+2
| | | | | | | Follow up for 5e16857315bf55307c5fc887ca6f03bfa0630a93. Calling a method in the middle of const_set adds a way that it would fail. It also makes it inconsistent with declaring a constant using `::`, which doesn't call `to_s`.
* configure: detect that there is no g++卜部昌平2020-09-031-0/+8
| | | | | | | | | AC_PROG_CXX checks for several C++ compilers INCLUDING g++. When none of them were found it sets the CXX variable to be g++. This doesn't make any sense. Absense of g++ has already been made sure. Because we don't want insanity (that's the whole reason we test the environment using autoconf), we need to swipe such insane variable out.
* add lldb functions for getting the heap page / heap page bodyAaron Patterson2020-09-021-0/+40
|
* support T_MATCH in lldbAaron Patterson2020-09-021-0/+4
|
* Initialize new T_OBJECT as ROBJECT_EMBEDJohn Hawthorn2020-09-023-7/+8
| | | | | | | | | | | | | | | | | | | | | | Previously, when an object is first initialized, ROBJECT_EMBED isn't set. This means that for brand new objects, ROBJECT_NUMIV(obj) is 0 and ROBJECT_IV_INDEX_TBL(obj) is NULL. Previously, this combination meant that the inline cache would never be initialized when setting an ivar on an object for the first time since iv_index_tbl was NULL, and if it were it would never be used because ROBJECT_NUMIV was 0. Both cases always fell through to the generic rb_ivar_set which would then set the ROBJECT_EMBED flag and initialize the ivar array. This commit changes rb_class_allocate_instance to set the ROBJECT_EMBED flag on the object initially and to initialize all members of the embedded array to Qundef. This allows the inline cache to be set correctly on first use and to be used on future uses. This moves rb_class_allocate_instance to gc.c, so that it has access to newobj_of. This seems appropriate given that there are other allocating methods in this file (ex. rb_data_object_wrap, rb_imemo_new).
* Add category to `rb_warn_deprecated`eileencodes2020-09-022-4/+31
| | | | | | | | | | | | | | | PR https://github.com/ruby/ruby/pull/3418 added a category to `rb_warn_deprecated_to_remove` but not to `rb_warn_deprecated`. This adds the same code to `rb_warn_deprecated` so that those warnings also get a category. This change also adds tests for `rb_warn_deprecated` and updates the tests for `rb_warn_deprecated_to_remove` to have clearer names. I've fixed the call to `rb_method_entry` as we need to be using the instance method, not singleton. Feature: https://bugs.ruby-lang.org/issues/17122
* Comply with guide for method doc: array.c (#3506)Burdette Lamar2020-09-022-140/+81
| | | | | | | | | | | | | Methods: any? all? one? none? sum shuffle! shuffle sample
* Document that StringScanner#matched_size returns size in bytes [ci skip]Jeremy Evans2020-09-021-2/+3
| | | | Fixes [Bug #17139]
* * 2020-09-03 [ci skip]git2020-09-031-1/+1
|
* Document limitation of Pathname#relative_path_from [ci skip]Jeremy Evans2020-09-021-0/+3
| | | | | | | | | This method is explicitly documented to not access the filesystem, and the only way to get the correct behavior for a case where the filesystem's case sensitivity differs from the operating system default would be to access the filesystem. Fixes [Bug #15417]
* new_dstr: hoisted out from literal_concat and evstr2dstrNobuyoshi Nakada2020-09-021-6/+12
|
* Removed trailing spaces [ci skip]Nobuyoshi Nakada2020-09-021-1/+1
|
* Fix constant names set using const_set on a singleton classMarc-Andre Lafortune2020-09-025-22/+59
| | | | Fixes [Bug #14895]
* Fix error message for wb unprotected objects countPeter Zhu2020-09-011-1/+1
| | | | This error is about wb unprotected objects, not old objects.
* Remove the pc argument of vm_trace()Alan Wu2020-09-012-3/+4
| | | | This makes the binary 272 bytes smaller on -O3 GCC 10.2.0.