Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ext/-test-/bug-14834/bug-14384.c: fallback for MAYBE_UNUSED | Yusuke Endoh | 2019-08-01 | 1 | -0/+4 |
| | | | | | __unused__ is unavailable on Sun C. https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris11s-sunc/ruby-master/log/20190801T112505Z.fail.html.gz | ||||
* | fix VC 2013 compile error | 卜部昌平 | 2019-08-01 | 1 | -2/+2 |
| | | | | | It seems the compiler does not support VLAs. See also: https://ci.appveyor.com/project/ruby/ruby/builds/26392589/job/px6nuiuw4e78weg1 | ||||
* | fix tracepoint + backtrace SEGV | 卜部昌平 | 2019-08-01 | 3 | -0/+51 |
| | | | | | | | | | | | | PC modification in gc_event_hook_body was careless. There are (so to say) abnormal iseqs stored in the cfp. We have to check sanity before we touch the PC. This has not been fixed because there was no way to (ab)use the setup from pure-Ruby. However by using our official C APIs it is possible to touch such frame(s), resulting in SEGV. Fixes [Bug #14834]. | ||||
* | * expand tabs. | git | 2019-07-31 | 1 | -1/+1 |
| | |||||
* | Use 1 byte hint for ar_table [Feature #15602] | Koichi Sasada | 2019-07-31 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On ar_table, Do not keep a full-length hash value (FLHV, 8 bytes) but keep a 1 byte hint from a FLHV (lowest byte of FLHV). An ar_table only contains at least 8 entries, so hints consumes 8 bytes at most. We can store hints in RHash::ar_hint. On 32bit CPU, we use 4 entries ar_table. The advantages: * We don't need to keep FLHV so ar_table only consumes 16 bytes (VALUEs of key and value) * 8 entries = 128 bytes. * We don't need to scan ar_table, but only need to check hints in many cases. Especially we don't need to access ar_table if there is no match entries (in many cases). It will increase memory cache locality. The disadvantages: * This technique can increase `#eql?` time because hints can conflicts (in theory, it conflicts once in 256 times). It can introduce incompatibility if there is a object x where x.eql? returns true even if hash values are different. I believe we don't need to care such irregular case. * We need to re-calculate FLHV if we need to switch from ar_table to st_table (e.g. exceeds 8 entries). It also can introduce incompatibility, on mutating key objects. I believe we don't need to care such irregular case too. Add new debug counters to measure the performance: * artable_hint_hit - hint is matched and eql?#=>true * artable_hint_miss - hint is not matched but eql?#=>false * artable_hint_notfound - lookup counts | ||||
* | [ruby/io-console] Do not use add_development_dependency | Nobuyoshi Nakada | 2019-07-25 | 1 | -4/+1 |
| | | | | https://github.com/ruby/io-console/commit/bc77f46391 | ||||
* | [ruby/psych] Get rid of C90 feature | Nobuyoshi Nakada | 2019-07-25 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | For ruby 2.6 and earlier. https://travis-ci.org/ruby/psych/jobs/562435717#L245-L248 ``` ../../../../ext/psych/psych_parser.c: In function ‘make_exception’: ../../../../ext/psych/psych_parser.c:87:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] VALUE ePsychSyntaxError = rb_const_get(mPsych, rb_intern("SyntaxError")); ^ ``` https://github.com/ruby/psych/commit/aa457443b8 | ||||
* | [ruby/psych] Deduplicate hash keys if they're strings | Jean Boussier | 2019-07-25 | 1 | -1/+23 |
| | | | | https://github.com/ruby/psych/commit/0414982ffd | ||||
* | [ruby/psych] Drop to support fat gem support. | Hiroshi SHIBATA | 2019-07-25 | 1 | -5/+1 |
| | | | | | | ref. https://github.com/ruby/bigdecimal/pull/149 https://github.com/ruby/psych/commit/25ae263252 | ||||
* | [ruby/psych] Do not use add_development_dependency. | Hiroshi SHIBATA | 2019-07-25 | 1 | -5/+0 |
| | | | | https://github.com/ruby/psych/commit/939754237f | ||||
* | [ruby/date] Describe what is meant by valid in the Date.valid_date? rdoc | Jeremy Evans | 2019-07-22 | 1 | -0/+3 |
| | | | | https://github.com/ruby/date/commit/8eca79d1f0 | ||||
* | Constified afamily functions | Nobuyoshi Nakada | 2019-07-16 | 1 | -3/+3 |
| | |||||
* | Allow mday in Date.iso8601 to be omitted | Nobuyoshi Nakada | 2019-07-16 | 1 | -3/+3 |
| | | | | [Bug #12285] | ||||
* | catch up e8ddbc0239. | Koichi Sasada | 2019-07-15 | 1 | -2/+2 |
| | |||||
* | ext/stringio/stringio.c (strio_read): "binray" is always zero here | Yusuke Endoh | 2019-07-15 | 1 | -1/+1 |
| | | | | Remove unused conditional expression to suppress Coverity Scan warnings. | ||||
* | Add a /* fall through */ comment | Yusuke Endoh | 2019-07-14 | 1 | -0/+1 |
| | |||||
* | socket: use frozen string buffer when releasing GVL | Tanaka Akira | 2019-07-14 | 1 | -2/+5 |
| | | | | Thanks for the patch by normalperson (Eric Wong) [Bug #14204]. | ||||
* | Include ruby/assert.h in ruby/ruby.h so that assertions can be there | Nobuyoshi Nakada | 2019-07-14 | 82 | -0/+185 |
| | |||||
* | Split RUBY_ASSERT and so on under include/ruby | Nobuyoshi Nakada | 2019-07-14 | 2 | -0/+2 |
| | |||||
* | Delegates 3 arguments for Pathname.glob. | Tanaka Akira | 2019-07-14 | 1 | -2/+2 |
| | | | | Thanks for the patch by pocke (Masataka Kuwabara) [Feature #14405]. | ||||
* | Added depend files | Nobuyoshi Nakada | 2019-07-14 | 33 | -0/+487 |
| | |||||
* | Removed useless `freeze`s from gemspec files | Nobuyoshi Nakada | 2019-07-13 | 3 | -39/+39 |
| | |||||
* | Drop fossil rubygems support | Nobuyoshi Nakada | 2019-07-13 | 2 | -37/+7 |
| | |||||
* | Removed stub lines from gemspec files | Nobuyoshi Nakada | 2019-07-13 | 2 | -4/+0 |
| | |||||
* | Removed binary line | Nobuyoshi Nakada | 2019-07-13 | 1 | -0/+0 |
| | |||||
* | Default to true when no exception flag [Bug #15987] | Nobuyoshi Nakada | 2019-07-11 | 1 | -1/+1 |
| | |||||
* | Fixed argument in the fallback function [Bug #15987] | Nobuyoshi Nakada | 2019-07-11 | 1 | -1/+1 |
| | |||||
* | Removed wrong argument in the fallback function [Bug #15987] | Nobuyoshi Nakada | 2019-07-11 | 1 | -1/+1 |
| | |||||
* | Check exception flag as a bool [Bug #15987] | Nobuyoshi Nakada | 2019-07-11 | 2 | -0/+13 |
| | |||||
* | Added Etc::VERSION | Nobuyoshi Nakada | 2019-07-10 | 2 | -1/+15 |
| | |||||
* | Removed unused files | Nobuyoshi Nakada | 2019-07-10 | 1 | -9/+3 |
| | |||||
* | C90 for old versions | Nobuyoshi Nakada | 2019-07-10 | 1 | -14/+11 |
| | |||||
* | Use the found version number | Nobuyoshi Nakada | 2019-07-10 | 1 | -1/+1 |
| | |||||
* | Removed useless `freeze`s | Nobuyoshi Nakada | 2019-07-10 | 1 | -13/+13 |
| | |||||
* | Added StringIO::VERSION | Nobuyoshi Nakada | 2019-07-10 | 2 | -1/+14 |
| | |||||
* | Update dependencies | Nobuyoshi Nakada | 2019-07-09 | 1 | -0/+1 |
| | |||||
* | Suppress uninitialized instance variable warnings | Nobuyoshi Nakada | 2019-07-09 | 1 | -1/+1 |
| | |||||
* | Let struct dump_config in objspace fit in a single cache line | Lourens Naudé | 2019-07-08 | 1 | -3/+3 |
| | | | | | | | Let dump_config boolean members roots and full_heap be bit flags instead Closes: https://github.com/ruby/ruby/pull/2274 | ||||
* | * expand tabs. | git | 2019-07-03 | 1 | -1/+1 |
| | |||||
* | Use rb_ident_hash_new instead of rb_hash_new_compare_by_id | Nobuyoshi Nakada | 2019-07-03 | 1 | -1/+1 |
| | | | | The latter is same as the former, removed the duplicate function. | ||||
* | Fixed inadvertent ID creation in rb_iv_get | Nobuyoshi Nakada | 2019-07-01 | 1 | -0/+8 |
| | |||||
* | Show the parser states in pretty_print too | Nobuyoshi Nakada | 2019-06-27 | 1 | -0/+2 |
| | |||||
* | Do not allocate a string to check if a scalar is an integer | Jean Boussier | 2019-06-25 | 1 | -9/+7 |
| | |||||
* | Remove string_cache in ScalarScanner | Jean Boussier | 2019-06-25 | 1 | -10/+1 |
| | |||||
* | Reduce string allocations in scalar_scanner | Jean Boussier | 2019-06-25 | 1 | -17/+15 |
| | |||||
* | Removed CHANGELOG from rdoc files. | SHIBATA Hiroshi | 2019-06-25 | 1 | -1/+1 |
| | |||||
* | Retired to write CHANGELOG.rdoc. Because It has no update from 2015. | SHIBATA Hiroshi | 2019-06-25 | 1 | -1/+1 |
| | |||||
* | Dump Hash ivars before elements | Aaron Patterson | 2019-06-25 | 1 | -9/+9 |
| | | | | | When the Hash is revived, the ivars will be set before elements. This is for the case when the hash setter depends on ivars set on the hash. | ||||
* | Round trip exception backtraces | Aaron Patterson | 2019-06-25 | 2 | -0/+5 |
| | | | | This commit allows exception backtraces to round trip | ||||
* | Refactor exception dumping | Aaron Patterson | 2019-06-25 | 1 | -28/+17 |
| |