aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fstring early for internal iseqnormal2016-01-264-8/+22
| | | | | | | | | | | | | | | | | | | All of the strings created here eventually get converted to fstrings when they are frozen into the iseq. Prepare the fstring early so we may reduce a one or two objects. This is a very minor change, mainly for the '<main>' dedupe. * compile.c (caller_location): use rb_fstring_cstr for "<compiled>" (it is converted to fstring anyways inside rb_iseq_new_with_opt) * iseq.c (iseqw_s_compile): ditto * iseq.c (rb_iseq_new_main): use rb_fstring_cstr for "<main>" * vm.c (Init_VM): ditto, share with with above * iseq.c (iseqw_s_compile_file): rb_fstring before rb_io_t->pathv share "<main>" with above * vm.c (rb_binding_add_dynavars): fstring "<temp>" immediately git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* compile.c: fix tailcall optimizationnobu2016-01-263-2/+30
| | | | | | | | | | * compile.c (iseq_peephole_optimize): don't apply tailcall optimization to send/invokesuper instructions with blockiseq. This is a follow-up to the changes in r51903; blockiseq is now the third operand of send/invokesuper instructions. [ruby-core:73413] [Bug #12018] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Signal.list deduplicates keysnormal2016-01-263-1/+12
| | | | | | | | | | This allows us to reuse string objects used in symbols as well as any string representations of signal names in source code. * signal.c (sig_list): use fstring for hash key * test/ruby/test_signal.rb (test_signal_list_dedupe_keys): added git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* signal.c: reserved signalsnobu2016-01-262-0/+11
| | | | | | | * signal.c (rb_f_kill): should immediately deliver reserved signals SIGILL and SIGFPE, ont only SIGSEGV and SIGBUS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-01-26svn2016-01-251-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Macro typonobu2016-01-252-1/+6
| | | | | | | * gc.c (RVALUE_PAGE_WB_UNPROTECTED): fix a typo of argument name. [Fix GH-1221] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix build with VM_CHECK_MODE > 0normal2016-01-253-2/+9
| | | | | | | | | | | * ruby_assert.h (RUBY_ASSERT_WHEN): fix reference to macro name * vm_core.h: include ruby_assert.h before using [ruby-core:73371] This does not fix the test failure documented in [ruby-core:73371], that is for later. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: dependency of ripper.cnobu2016-01-251-1/+1
| | | | | | * common.mk (ext/ripper/ripper.c): explicit parse.y for nmake. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert r53618 partiallynobu2016-01-251-3/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* symbol.c: more informative error messagenobu2016-01-253-2/+9
| | | | | | | | * symbol.c (sym_check_asciionly): more informative error message with the encoding name and the inspected content. [ruby-core:73398] [Feature #12016] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_string.rb: added testcase for next!, succ and succ!hsbt2016-01-252-0/+23
| | | | | | [fix GH-1213] Patch by @K0mAtoru git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/webrick/httpservlet/filehandler.rb: fix documentation for namespace.hsbt2016-01-252-1/+7
| | | | | | [fix GH-1219][ci skip] Patch by @leafac git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-01-25svn2016-01-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_class.rb: fix encodingnobu2016-01-241-1/+3
| | | | | | | * test/ruby/test_class.rb (test_namescope_error_message): fix encoding to UTF-8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_class.rb: test_namescope_error_messagenobu2016-01-241-0/+8
| | | | | | | * test/ruby/test_class.rb (test_namescope_error_message): test for r53644. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_insnhelper.c (vm_check_if_namespace): tiny size reductionnormal2016-01-242-4/+5
| | | | | | | | | | | | | Take advantage of "%+" modifier in the format string instead of explicitly calling rb_inspect to reduce object size. On x86 32-bit: text data bss dec hex filename before: 2949572 12448 30680 2992700 2daa3c miniruby after: 2949464 12448 30680 2992592 2da9d0 miniruby git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: Simplifying Unicode data file download logic to makeduerst2016-01-242-7/+9
| | | | | | | it more reliable (including additional fix not in r53633) [Bug #12007] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* wait readable/writablenobu2016-01-243-3/+92
| | | | | | | | * ext/io/wait/wait.c (io_wait_readwrite): [EXPERIMENTAL] allow to wait for multiple modes, readable and writable, at once. the arguments may change in the future. [Feature #12013] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-01-24svn2016-01-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_io_wait.rb: wait_readablenobu2016-01-241-0/+31
| | | | | | | * test/io/wait/test_io_wait.rb: add tests for IO#wait_readable, same as IO#wait. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add test for Array#keep_ifnobu2016-01-232-1/+20
| | | | | | | * test/ruby/test_array.rb (test_keep_if): Add test for Array#keep_if separate from Array#select! [Fix GH-1218] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* appveyor.yml: simplifynobu2016-01-231-5/+10
| | | | | | | * appveyor.yml (install, build_script): simplify by using same opt dir for libressl and zlib. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk: revert r53633. It broke rubyci and travis.hsbt2016-01-232-3/+11
| | | | | | https://travis-ci.org/ruby/ruby/builds/104259623 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typo.shugo2016-01-231-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53636 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_eqq): revert r11113 because rb_call_super() isshugo2016-01-233-7/+33
| | | | | | | | | called in range_include() and thus r11113 doesn't work when the receiver Range object consists of non linear objects such as Date objects. [ruby-core:72908] [Bug #12003] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ChangeLog: Fixing wrong time on previous commit, and addingduerst2016-01-231-2/+7
| | | | | | | | | | | previous commit message to svn [ci skip] The message on the previous commit should have read: common.mk: Simplifying Unicode data file download logic to make it more reliable [Bug #12007] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53633 ↵duerst2016-01-232-6/+8
| | | | b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* appveyor.yml: exclude unavailable extensionsnobu2016-01-231-1/+1
| | | | | | | * appveyor.yml (build_script): exclude unavailable extensions, gdb, gdbm, readline, and tk/tkutil. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/downloader.rb: Fixed a logical error, improved documentationduerst2016-01-232-18/+35
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix a typo [ci skip]kazu2016-01-231-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use SVG Travis badge over PNGnobu2016-01-232-1/+6
| | | | | | | * README.md: Use SVG Travis badge over PNG for better quality and devise support. [Fix GH-1214] [Fix GH-1216] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update documentation of CSV header converternobu2016-01-232-3/+9
| | | | | | | * lib/csv.rb: Update documentation of CSV header converter for r45498, [GH-575]. [Fix GH-1215] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.bat: put a spacenobu2016-01-231-1/+1
| | | | | | | * win32/configure.bat: put a space after replaced string to get rid of something weird sometimes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/configure.bat: set svn:eol-style to CRLF.shugo2016-01-221-223/+223
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-01-23svn2016-01-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.svn2016-01-221-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.bat: fix strange gotonobu2016-01-221-22/+22
| | | | | | | * win32/configure.bat: get rid of wrong goto destination by putting something before LF. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.svn2016-01-221-223/+223
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.bat: set eol-stylenobu2016-01-221-223/+223
| | | | | | * win32/configure.bat: should be CRLF eol-style. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.svn2016-01-221-223/+223
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* configure.bat: --with-libdirnobu2016-01-223-2/+15
| | | | | | | * win32/configure.bat: add --with-libdir option for basename of libdir. on Windows it must be placed under exec_prefix always. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: source dependency for nmakenobu2016-01-222-2/+4
| | | | | | | | * common.mk (ext/rbconfig/sizeof/sizes.c): separate the dependency with VPATH and the command, get rid of weird VPATH behavior of nmake. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: probes.dmyh for nmakenobu2016-01-221-0/+2
| | | | | | | * common.mk (probes.dmyh): separate the dependency and the command, get rid of weird VPATH behavior of nmake. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_core.h: use RUBY_ASSERTnobu2016-01-226-3/+29
| | | | | | * vm_core.h (VM_ASSERT): use RUBY_ASSERT instead of rb_bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* RUBY_ASSERTnobu2016-01-2212-12/+93
| | | | | | | * error.c (rb_assert_failure): assertion with stack dump. * ruby_assert.h (RUBY_ASSERT): new header for the assertion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add badgesnaruse2016-01-222-8/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove to allow trunknaruse2016-01-221-3/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add appveyor.ymlnaruse2016-01-221-0/+42
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2016-01-22svn2016-01-211-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regparse.c (fetch_name_with_level): allow non word charactersnaruse2016-01-213-7/+28
| | | | | | | | at the first character. [Feature #11949] * regparse.c (fetch_name): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e