Граф коммитов

37969 Коммитов

Автор SHA1 Сообщение Дата
nobu ee4ca1887a console.c: dead code
* ext/io/console/console.c: remove dead code for old versions.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-17 08:17:46 +00:00
nobu 467830e867 compile.c: struct accessors
* compile.c (rb_method_for_self_aref, rb_method_for_self_aset):
  move from iseq.c to build from node instead of arrays.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-17 03:20:58 +00:00
nobu fd639a4c3b vm.c: constify
* vm.c (rb_vm_get_binding_creatable_next_cfp): constify arguments.
  (rb_vm_get_ruby_level_next_cfp): ditto.
  (vm_get_ruby_level_caller_cfp): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-17 03:08:20 +00:00
nobu 25d670429c compile.c: constify
* compile.c (iseq_set_local_table): constify ID table.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-17 02:57:53 +00:00
nobu 8d84693323 iseq.c: default option
* iseq.c (rb_iseq_new_with_opt): allow NULL option as
  COMPILE_OPTION_DEFAULT.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-17 02:57:51 +00:00
nobu d327d445c8 iseq.c: absolute_path
* iseq.c (caller_location): separate absolute_path.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-17 02:52:19 +00:00
hsbt bf29986371 * test/gdbm/test_gdbm.rb: Added test for each_key called without a block.
Patch by @joeyates [fix GH-783]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-17 01:50:14 +00:00
ko1 6eac885ebe * compile.c (iseq_compile_each): check
iseq->compile_data->option->specialized_instruction for opt_* insn.
* test/ruby/test_iseq.rb: check no specialized_instructions option.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-17 01:20:22 +00:00
normal fcf6fa8781 compile.c: skip opt_* insns for fstr args with block given
* compile.c (iseq_compile_each): only emit opt_str_freeze,
  opt_aref_with, and opt_aset_with insn when no block is given
  [Bug #10557] [ruby-core:66595]
* test/ruby/test_optimization.rb (test_block_given_aset_aref):
  new test for bug thanks to Bartosz Kopinski.
  (test_string_freeze): additional assertion for object_id

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-17 00:54:13 +00:00
svn 61a8e7ebf7 * 2014-12-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-16 16:08:28 +00:00
usa 03021a6de6 * ext/win32/lib/Win32API.rb (Win32API#call): need to splat. hmm, when
was this broken?


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-16 16:08:16 +00:00
usa 4c1666875f * NEWS: mention about IO#fsync (and IO#flush). adviced by kosaki.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-16 07:48:22 +00:00
nobu e4cf2f328d iseq.c: remove useless code
* iseq.c (rb_method_for_self_aref): remove unused declaration.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-16 07:38:52 +00:00
nobu e4717eaa4c iseq.c: struct accessors
* iseq.c (rb_method_for_self_aref, rb_method_for_self_aset): call
  accessor functions directly, not to be affected by [] and []=
  methods.  [ruby-core:66846] [Bug #10601]
* struct.c (define_aref_method, define_aset_method): ditto.
* vm_insnhelper.c (rb_vm_opt_struct_aref, rb_vm_opt_struct_aset):
  direct accessors of Struct.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-16 06:18:25 +00:00
nobu 97628bff12 compile.c: wrap funcptr
* compile.c (iseq_build_from_ary_body): enclose funcptr with
  Integer as raw pointer cannot appear in an Array.

* iseq.c (iseq_data_to_ary): extract funcptr from Integer.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-16 05:54:32 +00:00
nobu bad77a862e .travis.yml: fix escape
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-16 05:05:00 +00:00
nobu c51a3e6403 .travis.yml: dump crash logs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-16 04:59:31 +00:00
nobu 5020101829 test_rubyoptions.rb: clean crash log
* test/ruby/test_rubyoptions.rb (test_segv_loaded_features): clean
  crash log on OS X after intentional segv.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-16 04:39:17 +00:00
ko1 9787723785 * test/ruby/test_process.rb (test_deadlock_by_signal_at_forking):
extend timeout seconds to 60 for RGENGC_CHECK_MODE > 0 environment.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-16 03:03:24 +00:00
nobu 1d5c5ea153 iseq.c: show function name if possible
* iseq.c (rb_insn_operand_intern): show the name of the nearest
  run-time symbol if possible.

* compile.c (insn_data_to_s_detail): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-16 01:14:27 +00:00
nobu 389ea73014 compile.c: check funcptr
* compile.c (iseq_build_from_ary_body): cannot load dumped funcptr.

* iseq.c (iseq_data_to_ary): cannot dump funcptr.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-16 01:14:20 +00:00
normal 9aeb74d0de tool/vcs.rb: fix Ruby 1.8 compatibility harder
Arguments after splat do not work under 1.8, either.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-16 00:08:14 +00:00
normal 2c2bdb8b51 GC documentation update
* gc.c (GC_HEAP_FREE_SLOTS): move definition to match use order
  (RUBY_GC_HEAP_GROWTH_SLOTS): s/factor/number of slots/

* man/ruby.1: add section for GC environment variables
  [Feature #10197]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 22:39:33 +00:00
headius 0a52821396 * test/lib/test/unit.rb: Also rescue EINVAL for older Linux that
raises it in popen. [Bug #10494]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 22:33:44 +00:00
normal 5559e75ea5 tool/vcs.rb: fix Ruby 1.8 compatibility
Symbol#to_proc is not standard in Ruby 1.8

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 20:44:54 +00:00
headius 0e590199f9 * test/ruby/test_time.rb: Add test for getlocal(nil). See
jruby/jruby#2310.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 19:59:12 +00:00
nobu a3450f4733 iseq.c: use caller location
* iseq.c (rb_method_for_self_aref, rb_method_for_self_aset): set
  same location as the caller.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 19:13:15 +00:00
nobu 20748861d4 iseq.c: intermediate arrays
* iseq.c (rb_method_for_self_aref, rb_method_for_self_aset): hide
  and clear intermediate array objects.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 19:13:07 +00:00
nobu 5f2a4d15a7 compile.c: support for TS_FUNCPTR
* compile.c (iseq_set_sequence): support for TS_FUNCPTR.

* compile.c (insn_data_to_s_detail): ditto.

* compile.c (iseq_build_from_ary_body): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 19:09:25 +00:00
svn 3be63cd978 * 2014-12-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 18:56:44 +00:00
headius 0f99627a79 * test/ruby/test_io_m17n.rb: Add test for coderange clearing in
IO#read with buffer. See jruby/jruby#2316.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 18:56:30 +00:00
ko1 85b42fe17b * ext/objspace/objspace.c: ObjectSpace.memsize_of(obj) returns
with sizeof(RVALUE). [Bug #8984]
* gc.c (obj_memsize_of): ditto.
* NEWS: add a NEWS entry.
* test/objspace/test_objspace.rb: catch up this fix.
* test/ruby/test_file_exhaustive.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 08:54:07 +00:00
nobu 020fcc95fe string.c: fix coderange for non-endianness string
* string.c (rb_enc_str_coderange): dummy wchar, non-endianness
  encoding string cannot be ascii only.
  [ruby-core:66835] [Bug #10598]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 07:19:25 +00:00
naruse b2a128fa7c comment out for x86 extended precision
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 06:17:58 +00:00
naruse 4527b18a6b VCS::SVN#url was buggy and recent commits exposed it
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 06:02:58 +00:00
nobu 825680a106 make-snapshot: reuse downloaded files
* tool/make-snapshot (package): reuse already downloaded files if
  existing.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 01:30:30 +00:00
nobu 238d8586df make-snapshot: use srcdir
* tool/make-snapshot: use srcdir as checked out working directory.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 01:28:58 +00:00
nobu fff1128281 vcs.rb: abstract
* tool/vcs.rb: abstract VCS interfaces from make-snapshot.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 01:02:52 +00:00
nobu 81ac745846 vcs.rb: non-string path
* tool/vcs.rb (VCS#get_revisions, VCS::SVN.get_revisions): allow
  path to be other than a string.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 01:02:46 +00:00
svn 36319b4f0e * 2014-12-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 01:02:45 +00:00
nobu 251869bc11 vcs.rb: IO.pread
* tool/vcs.rb (IO.pread): method to read command output without
  shell.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 01:02:41 +00:00
nobu e0bcfdd931 make-snapshot: suppress warnings
* tool/make-snapshot: suppress warnings for uninitialized global
  variables.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 01:02:32 +00:00
nobu 2de3281af4 parse.y: warn reference after method definition
* parse.y (primary): restore current_arg so that circular
  reference after a method definition is also warned.
  [ruby-core:61299] [Bug #9593]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-14 11:11:45 +00:00
nobu db4e9d5eb3 vcs.rb: srcdir parameter
* tool/vcs.rb (VCS#get_revisions): add srcdir optional parameter
  to SVN.get_revisions and GIT.get_revisions, instead of change
  working directory.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-13 23:55:33 +00:00
nobu 7c81643953 test_gc.rb: workaround for Windows
* test/ruby/test_gc.rb (test_interrupt_in_finalizer): use inner
  process signal for Windows.  [ruby-core:66825] [Bug #10595]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-13 23:46:54 +00:00
nobu e50746da00 test_gc.rb: wait
* test/ruby/test_gc.rb (test_interrupt_in_finalizer): wait longer
  and send more interrupts for slower cases.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-13 21:55:17 +00:00
svn 95083356b9 * 2014-12-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-13 21:32:39 +00:00
nobu 554da7feee signal.c: include ucontext.h
* signal.c: include ucontext.h for ucontext_t.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-13 21:31:31 +00:00
nobu 05459d1a33 vm_trace.c: defer interrupts while postponed jobs
* vm_trace.c (rb_postponed_job_flush): mask signal trap interrupt
  too to defer handling after finalizers finished.
  [ruby-core:66825] [Bug #10595]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-13 11:41:57 +00:00
hsbt 6447d061f5 * test/openssl/test_pkey_ec.rb: ignored tests with old OpenSSL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-13 09:33:33 +00:00