aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * dir.c (glob_helper): use #ifdef instead of #if.ko12014-09-045-4/+19
| | | | | | | | | | | gcc's -Wundef option shows warning for undefined macro. * numeric.c (flo_is_finite_p): ditto. * vm_dump.c (rb_vmdebug_thread_dump_state): ditto. * vm_core.h: define VM_DEBUG_VERIFY_METHOD_CACHE to 0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-09-04svn2014-09-031-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* man/ruby.1: spelling fix ("bellow" => "below") [ci-skip]normal2014-09-032-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* man/ruby.1: add trailing slash to URLs [ci-skip]normal2014-09-032-3/+7
| | | | | | URLs without path component needs trailing slash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (before_fork_ruby): Renamed from before_fork.akr2014-09-032-7/+12
| | | | | | | | | (after_fork_ruby): Renamed from after_fork. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (forked_child): Removed.akr2014-09-032-20/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* object.c: fix memory leaknobu2014-09-033-2/+20
| | | | | | | * object.c (rb_obj_copy_ivar): allocate no memory for empty instance variables. [ruby-core:64700] [Bug #10191] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot (usage): X.Y means the head of a branch now.nobu2014-09-031-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot (package): no teeny means a branch since 2.1.nobu2014-09-031-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (retry_fork_async_signal_safe): Use vfork() if available.akr2014-09-032-0/+19
| | | | | | | | | | | | | | vfork() is still faster than fork() especially when the parent process uses big memory. ruby -rbenchmark -e 'a = "a" * 1_000_000_000; puts Benchmark.measure { system("true") }' fork: 0.000000 0.010000 0.010000 ( 0.014968) vfork: 0.000000 0.000000 0.000000 ( 0.000912) on Debian sid. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/openssl/test_pkey_rsa.rb (OpenSSL#test_sign_verify_memory_leak):hsbt2014-09-032-2/+8
| | | | | | | added timeout into testcase for low performance environment. [Bug #9984][ruby-core:63367] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: Use AC_FUNC_FORK.akr2014-09-024-36/+45
| | | | | | | | | | * io.c: Use HAVE_WORKING_FORK instead of HAVE_FORK. * process.c: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Ruby can delay arbitrarily because Ruby is not a realtime system, akr2014-09-021-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-09-03svn2014-09-021-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (retry_fork_async_signal_safe): Don't return on in childakr2014-09-022-17/+22
| | | | | | | | process. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (retry_fork_async_signal_safe): Specialized version ofakr2014-09-022-27/+52
| | | | | | | | | | | retry_fork respect to rb_fork_async_signal_safe. (retry_fork_ruby): Specialized version of retry_fork respect to rb_fork_ruby. (rb_fork_ruby): Removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (send_child_error): Simplified.akr2014-09-022-34/+13
| | | | | | | | (recv_child_error): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_fork_async_signal_safe): Inline rb_fork_internal.akr2014-09-022-74/+49
| | | | | | | | | | (rb_fork_ruby): Ditto. (rb_fork_internal): Removed. (chfunc_protect): Removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (test_new_with_block): Set autoclose to avoid EBADF.akr2014-09-022-2/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_io.rb: ignore stream closed IOErrornobu2014-09-021-3/+7
| | | | | | | * test/ruby/test_io.rb (test_readpartial_locktmp): stream closed IOError while reading is not a matter. [Bug #10193] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in (update-coverage): Remove a never executed line.kou2014-09-022-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (handle_fork_error): Extracted from retry_fork.akr2014-09-022-32/+43
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: added link of github issuehsbt2014-09-021-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/rbinstall.rb: fixed error of local installation.hsbt2014-09-022-1/+6
| | | | | | [Bug #10192][ruby-core:64702] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-09-02svn2014-09-021-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/runner.rb: reporting test coverage for test-all with COVERAGE env.hsbt2014-09-025-0/+29
| | | | | | | | | [Feature #10189][ruby-core:64681] * Makefile.in: added task for coverage report. * common.mk: added definition of forked simplecov url. * .gitignore: ignored coverage directory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-09-01svn2014-09-011-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (rbtime2vtdate): try to convert millisecondsuke2014-09-013-2/+34
| | | | | | | | | | of Time object to millisecond of VT_DATE VARIANT. * test/win32ole/test_win32ole_variant.rb (test_conversion_time2date_with_msec): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/benchmark.rb: Fix a syntax error.akr2014-08-312-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* benchmark.rb: Process::CLOCK_MONOTONIC_RAW may be unavailablenobu2014-08-311-1/+2
| | | | | | | * lib/benchmark.rb (BENCHMARK_CLOCK): Process::CLOCK_MONOTONIC_RAW is not supported on old linux. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_benchmark.rb: use assert_in_epsilonnobu2014-08-311-1/+1
| | | | | | | | * test/benchmark/test_benchmark.rb (test_realtime_output): use assert_in_epsilon which compares in relative range, instead of assert_in_delta which compares in absolute range. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-08-31svn2014-08-301-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* zlib: GzipReader#rewind preserves ZSTREAM_FLAG_GZFILEnormal2014-08-303-0/+13
| | | | | | | | | | | | | | | | | | | | * ext/zlib/zlib.c (gzfile_reset): preserve ZSTREAM_FLAG_GZFILE [Bug #10101] * test/zlib/test_zlib.rb (test_rewind): test each_byte We must preserve the ZSTREAM_FLAG_GZFILE flag to prevent zstream_detach_buffer from: a) returning Qnil and breaking out of the `each_byte' loop b) yielding a large string to each_byte Note: the test case in bug report takes a long time. I found this bug because I noticed the massive time descrepancy between `each_byte' and `readbyte' loop before this patch. With this patch, `each_byte' and `readbyte' both take very long. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* internal.h: WARN_UNUSED_RESULTnobu2014-08-302-2/+15
| | | | | | | | | * internal.h (WARN_UNUSED_RESULT): warn unused result by gcc 3.4 or later. * symbol.c: declare some functions with WARN_UNUSED_RESULT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* symbol.c (rb_sym2id): do not return garbage objectnormal2014-08-302-1/+5
| | | | | | | | | | The dynamic sym passed to rb_sym2id may be a garbage object (as accounted for by dsymbol_check). This fixes an occasional segfault in "make test-all" for me. No need to backport, this is from the new symbol GC feature. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_benchmark.rb: extend sleep timenobu2014-08-301-2/+3
| | | | | | | * test/benchmark/test_benchmark.rb: extend sleep time, as 1ms is too short on some environments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* benchmark.rb: prefer Process::CLOCK_MONOTONIC_RAWnobu2014-08-301-1/+4
| | | | | | | * lib/benchmark.rb (BENCHMARK_CLOCK): prefer Process::CLOCK_MONOTONIC_RAW if available to more accurate measure. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/yaml_tree.rb: fix NameError dumping andtenderlove2014-08-293-0/+31
| | | | | | | loading. Fixes GH #85. Thanks @brentdax for the patch! * test/psych/test_exception.rb: test for fix git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/scalar_scanner.rb: fix loading strings thattenderlove2014-08-293-1/+11
| | | | | | | look like integers but have a newline. Fixes GH #189 * test/psych/test_string.rb: test for fix git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/to_ruby.rb: merge keys with a hashtenderlove2014-08-293-1/+17
| | | | | | | should merge the hash in to the parent. * test/psych/test_merge_keys.rb: test for change. Fixes GH #202 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-08-30svn2014-08-291-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/to_ruby.rb: quoted "<<" stringstenderlove2014-08-294-1/+36
| | | | | | | | | should not be treated as merge keys. * ext/psych/lib/psych/visitors/yaml_tree.rb: hashes with keys containing "<<" should roundtrip. * test/psych/test_merge_keys.rb: test for change. Fixes GH #203 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/imap/test_imap_response_parser.rb: removed needless code.hsbt2014-08-292-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rinda/test_rinda.rb: removed useless assignment variables.hsbt2014-08-294-5/+8
| | | | | | | * test/rss/rss-assertions.rb: ditto. * test/rss/test_maker_itunes.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: remove vm_core.h dependency [ruby-core:64627]normal2014-08-293-8/+21
| | | | | | | * string.c: revert part of r47311, add rb_vm_fstring_table(), remove vm_core.h dependency. [ruby-core:64627] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-08-29svn2014-08-291-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: move frozen_strings table to rb_vm_tnormal2014-08-296-10/+31
| | | | | | | | | | | | | | | | | Cleanup in case MVM development proceeds. * string.c: remove static frozen_strings * string.c (Init_frozen_strings): new function * string.c (rb_fstring): remove check for frozen strings, use per-VM table * string.c (rb_str_free): use per-VM table * string.c (Init_String): use per-VM table * vm_core.h (rb_vm_t): add frozen_strings table * internal.h (Init_frozen_strings): new function prototype * eval.c (ruby_setup): call Init_frozen_strings [Feature #10182] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* io.c: fix uninitialized variablenobu2014-08-281-1/+2
| | | | | | | * io.c (argf_next_argv): fix uninitialized variable in skipping message when inplace edit without backup. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_io.rb: non UTF-8 patternnobu2014-08-281-1/+1
| | | | | | | * test/ruby/test_io.rb: (test_invalid_advise): fix pattern for non UTF-8 environment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_io_m17n.rb: leaked FDsnobu2014-08-281-2/+2
| | | | | | | * test/ruby/test_io_m17n.rb (test_ignored_encoding_option): fix leaked file descriptors by r47305. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e