summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-03-05* gc.c (obj_info): show node name too.ko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05add Changelogko1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05* internal.h: remove struct method_table_wrapper.ko1
struct method_table_wrapper was introduced to avoid duplicate marking for method tables. For example, `module M1; def foo; end; end` make one method table (mtbl) contains a method `foo`. M1 (T_MODULE) points mtbl. Classes C1 and C2 includes M1, then two T_ICLASS objects are created and they points mtbl too. In this case, three objects (one T_MODULE and two T_ICLASS objects) points same mtbl. On marking phase, these three objects mark same mtbl. To avoid such duplication, struct method_table_wrapper was introduced. However, created two T_ICLASS objects have same or shorter lifetime than M1 (T_MODULE) object. So that we only need to mark mtbl from M1, not from T_ICLASS objects. This patch tries marking only from M1. Note that one `Module#prepend` call creates two T_ICLASS objects. One for refering to a prepending Module object, same as `Module#include`. We don't nedd to care this T_ICLASS. One for moving original mtbl from a prepending class. We need to mark such mtbl from this T_ICLASS object. To mark the mtbl, we need to use `RCLASS_ORIGIN(klass)` on marking from a prepended class `klass`. * class.c: ditto. * eval.c (rb_using_refinement): ditto. * gc.c: ditto. * include/ruby/ruby.h: define m_tbl directly. The definition of struct RClass should be moved to (srcdir)/internal.h. * method.h: remove decl of rb_free_m_tbl_wrapper(). * object.c: use RCLASS_M_TBL() directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05* dir.c (replace_real_basename): need to check the return value ofusa
GLOB_REALLOC(). [ruby-core:68430] [Bug #10941] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05* 2015-03-06svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05* dir.c (replace_real_basename): shouldn't create Ruby object beforeusa
the object system is loaded. [ruby-core:68430] [Bug #10941] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05fix a typo [ci skip]kazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05fix typos [ci skip]kazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05driver.rb: name widthnobu
* benchmark/driver.rb (BenchmarkDriver#adjusted_results): calculate max width of names at last. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05* hash.c: [DOC] #delete method actually returns nil, if the keygogotanaka
is not found. [fix GH-844][ci skip] Patch by @ivdma git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05driver.rb: fix indexnobu
* benchmark/driver.rb (show_results): fix index of results. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05remove GEM directories at exitnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05* math.c: refactoring: remove unnecessary variable d0 to unify codegogotanaka
appearance. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05* vm_eval.c (eval_string_with_cref): A binding should keepshugo
refinements activation information and the refinements should be activated in subsequent eval calls with the binding. [ruby-core:67945] [Bug #10818] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05driver.rb: plain text tablenobu
* benchmark/driver.rb (show_results): support plain text style table format output. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05driver.rb: suffixnobu
* benchmark/driver.rb: add suffix to default output file name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05* test/ruby/test_refinement.rb: There is no need anymore to supressshugo
warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05.travis.yml: no check for diagnostic reportsnobu
* .travis.yml (after_failure): remove false positive check by diagnostic reports. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-05driver.rb: MarkDown tablenobu
* benchmark/driver.rb (show_results): support MarkDown style table format output. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-04* 2015-03-05svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-04* random.c (random_raw_seed): Avoid calling fill_random_bytes()odaira
if the requested size is 0. AIX returns -1 for 0-byte read from /dev/urandom, while other UNIX returns 0. With this change, Random.raw_seed(0) consistently retuns "" in any UNIX. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-04* test/ruby/test_math.rb (assert_float_and_int): Refactor test casesgogotanaka
by introducing assert_float_and_int. [misc #10810] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-04symbol.c: make dsym_fstrs an identity hashnobu
* symbol.c (Init_sym): make dsym_fstrs a hash compared by identity as the keys are unique fstrings, to get rid of running hash and compare methods and causing new object allocation during garbage collection phase. [ruby-dev:48891] [Bug #10933] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-04rbinstall.rb: set umask 077nobu
* tool/rbinstall.rb: default umask to prohibit group/others from reading/writing/executing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-04envutil.rb: no need to sleepnobu
* test/lib/envutil.rb (assert_in_out_err): remove sleep to catch the just time, and it is unnecessary as diagnostic_reports waits for 3 seconds. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-04* enum.c: Fix typo in slice_after's exception message.hsbt
[fix GH-842][ci skip] Patch by @jsyeo git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-04* doc/syntax/methods.rdoc: add some missing spaces andhsbt
fix a grammatical error in method docs. [fix GH-843][ci skip] Patch by @nikolas git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-04envutil.rb: diagnostic_reports for SIGTRAPnobu
* test/lib/envutil.rb (EnvUtil.diagnostic_reports): SIGTRAP also generate diagnostic report file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03* tool/redmine-backporter.rb (backport_command_string): pick up onlyusa
when the revision exists in trunk. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03mkmf/base.rb: clean up tmpdirnobu
* test/mkmf/base.rb (TestMkmf#assert_separately): call teardown to clean up temporary directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03rbinstall.rb: gems dir_modenobu
* tool/rbinstall.rb (DirPackage#extract_files): set directories permission of gems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03thread.c: volatile inside EXEC_TAGnobu
* thread.c (rb_thread_io_blocking_region): assigned variables inside EXEC_TAG() should be volatile. * thread.c (rb_thread_s_handle_interrupt): ditto. * thread.c (exec_recursive): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03.travis.yml: no diagnostic reportsnobu
* .travis.yml (script): no diagnostic reports files should be left. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03* 2015-03-04svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03* tool/redmine-backporter.rb: now can specify shorten form of commands.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03* tool/redmine-backporter.rb (Readline.readline): drop untreated controlusa
characters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03* test/lib/envutil.rb (EnvUtil.invoke_ruby): need to rescue becauseusa
Signal.signame may raise exception. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03remove ruby_1_9_2 supportnaruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03add teenyupnaruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03test_rubyoptions.rb: use assert_in_out_errnobu
* test/ruby/test_rubyoptions.rb (assert_segv): assert_in_out_err with the pattern list instead of invoke_ruby. * test/-ext-/bug_reporter/test_bug_reporter.rb (test_bug_reporter_add): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03envutil.rb: improve by assert_pattern_listnobu
* test/lib/envutil.rb (assert_in_out_err): improve to match by assert_pattern_list if expected result is other than Regexp or String list. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03test_process.rb: use assert_in_out_errnobu
* test/ruby/test_process.rb (test_status_quit): use assert_in_out_err to simplify and clean diagnostic reports. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03* tool/redmine-backporter.rb: use 'b' instead of 's' for showingusa
Backport options for merger.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03* tool/redmine-backporter.rb: show selected ticket number at prompt.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03* test/ruby/test_math.rb: add tests for the above change.gogotanaka
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03* math.c (num2dbl_with_to_f): direct casting from Rational to double.gogotanaka
[Feature #10909] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03test_rubyoptions.rb: use assert_segvnobu
* test/ruby/test_rubyoptions.rb (test_segv_loaded_features): use assert_segv to simplify. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03.travis.yml: CONFIG_FLAGnobu
* .travis.yml (before_install): merge options for extension libraries to CONFIG_FLAG. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03.travis.yml: install missing librarynobu
* .travis.yml (before_install): install gdbm too. * .travis.yml (script): test options should be in TESTOPTS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-03-03.travis.yml: suppress travis specific failurenobu
* .travis.yml (before_script): suppress the failure which happens only in travis OSX for the time being. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e