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

33165 Коммитов

Автор SHA1 Сообщение Дата
svn e51c62454d * 2013-10-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-06 18:43:55 +00:00
nobu d052676074 NEWS: timeout
* NEWS (Stdlib updates): uptdate of timeout.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-06 18:43:53 +00:00
nobu cd006f08e2 io.c: use local variables instead of struct members
* io.c (copy_stream_body): move src_io and dst_io back to top level
  and use instead of stp->src and stp->dst.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-06 18:43:50 +00:00
nobu 99526d0f4e io.c: suppress false uninitialized-variable warning
* io.c (io_ascii8bit_binmode): split from rb_io_ascii8bit_binmode() to
  call with rb_io_t* directly.

* io.c (copy_stream_body): move src_io and dst_io into each blocks
  where those are only used.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-06 13:52:44 +00:00
nobu 7f41aa5f09 signal.c: get rid of system name
* signal.c (sighandler_t): get rid of clash with system provided name.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-06 13:52:39 +00:00
nobu be903332c6 test_tempfile.rb: fix test on Windows
* test/test_tempfile.rb (test_tempfile_finalizer_does_not_run_if_unlinked):
  open file cannot be deleted on Windows.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-06 00:38:34 +00:00
nobu 21212fba19 test_old_thread_select.rb: ignore short wait on Windows
* test/-ext-/old_thread_select/test_old_thread_select.rb
  (test_old_select_signal_safe): ignore short wait on Windows.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-06 00:28:13 +00:00
nobu 803c3929b8 test_sleep.rb: get rid of failure on Windows
* test/ruby/test_sleep.rb (test_sleep_5sec): relax bottom on Windows.
  assert_operator should test on the receiver.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-06 00:22:58 +00:00
nobu 6d757c79d9 test_thread.rb: ignore meaningless test
* test/ruby/test_thread.rb (test_blocking_mutex_unlocked_on_fork):
  ignore meaningless test on platforms where fork() is not supported.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-06 00:16:52 +00:00
svn c55e4dd342 * 2013-10-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-05 23:39:38 +00:00
zzak 1dc1171f1c * lib/webrick.rb: [DOC] fix grammar in WEBrick overview [Fixes GH-413]
Based on patch by @chastell https://github.com/ruby/ruby/pull/413


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-05 23:39:32 +00:00
nobu 6950d366fd thread.c: fix some mutexes remaining locked after forking
* thread.c (terminate_atfork_i): fix locking mutexes not unlocked in
  forks when not tracked in thread.  [ruby-core:55102] [Bug #8433]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-05 02:21:17 +00:00
nobu 57b8687deb thread.c: fix some mutexes remaining locked after forking
* thread.c (terminate_atfork_i): fix locking mutexes not unlocked in
  forks when not tracked in thread.  [ruby-core:55102] [Bug #8433]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-05 02:21:12 +00:00
nobu a10c9a0e76 common.mk: revert r43137 and r43145
* common.mk (sizes.c): revert r43137 and r43145, because the former
  commit made sizes.c rebuild always each build.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-05 01:02:15 +00:00
svn 7ea586353d * 2013-10-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-05 00:18:58 +00:00
nobu 156eb84808 common.mk: sizes.c depends on PREP now
* common.mk (sizes.c): now depends on PREP, which is miniruby if
  native compile or fake.rb otherwise, to run MINIRUBY [Bug #8968]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-05 00:18:54 +00:00
zzak 8015397318 * ext/dbm/dbm.c: [DOC] Fix wrong constant name in DBM by @edward
[Fixes GH-409] https://github.com/ruby/ruby/pull/409


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-04 10:56:27 +00:00
tmm1 8d9e3cd9c6 gc.c: rename heap.free_num to heap.swept_num
* gc.c: rename heap.free_num as heap.swept_num to clarify meaning and
  avoid confusion with objspace_free_num().

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-04 10:52:25 +00:00
tmm1 907a03fee5 gc.c: add objspace_free_num and make GC.stat[:heap_free_num] use it
* gc.c (objspace_free_num): new method for available/free slots on
	  heap. [ruby-core:57633] [Bug #8983]
	* gc.c (gc_stat): change heap_free_num definition to use new method.
	* test/ruby/test_gc.rb: test for above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-04 10:05:40 +00:00
tmm1 a24705cfa5 gc.c: add rb_objspace.limit
* gc.c: add rb_objspace.limit to keep accurate count of total heap
	  slots [ruby-core:57633] [Bug #8983]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-04 10:05:37 +00:00
nobu 0f8032ba2b common.mk: make sizes.c with MINIRUBY
* common.mk (sizes.c): use MINIRUBY because Init_sizes() for miniruby
  is defined in miniinit.c and miniruby does not depend on this file.
  [Bug #8968]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-04 07:36:22 +00:00
svn 06583e1fc6 * 2013-10-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-04 00:32:41 +00:00
nobu 28204c67ed csv.rb: foreach enumerator
* lib/csv.rb (CSV.foreach): support enumerator.  based on a patch by
  Hanmac (Hans Mackowiak) at [ruby-core:57643].  [ruby-core:57283]
  [Feature #8929]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-04 00:32:35 +00:00
kazu 6c4387b4f2 fix a typo
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-03 13:17:45 +00:00
nobu fd3cdb5ee3 test_io.rb: fix typo
* test/ruby/test_io.rb (test_pid_after_close_read): fix typo.  pointed
  out by Peter Suschlik.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-03 11:41:50 +00:00
nobu c4553abafa * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-03 09:23:56 +00:00
nobu 886e3bb1df win32.c: disable console colorizing
* win32/win32.c (console_emulator_p, constat_handle): disable built-in
  console colorizing when console-emulator-like DLL is injected.
  [Feature #8201]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-03 09:20:51 +00:00
ko1 fa105e6c20 * gc.c: define gc_profile_record::allocated_size if
CALC_EXACT_MALLOC_SIZE is true.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43130 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-03 09:03:06 +00:00
nobu 870dc20922 common.mk: use RUNRUBY for test-sample
* common.mk (yes-test-sample): use RUNRUBY instead of MINIRUBY to set
  runtime library path and run the built ruby.  [Bug #8971]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-03 04:42:55 +00:00
nobu 09c96a7858 thread_pthread.c: set thread name
* thread_pthread.c (thread_timer): set timer thread name on OSX too.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-03 01:37:00 +00:00
charliesome 0b991b6579 * hash.c (env_update): [DOC] fix expected output, should be 0 instead
of 10. Patch by @yakko. [GH-411]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-03 00:43:01 +00:00
nobu b4f7bf86f1 rbinstall.rb: reorder
* tool/rbinstall.rb: install default targets (:local, :ext) first,
  very time consuming tasks later.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 18:37:52 +00:00
nobu 13e60f2bff * ext/thread/thread.c (ALIAS_GLOBAL_CONST): fix typo, GLOBCAL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 18:20:17 +00:00
nobu cb2b598024 * ext/thread/thread.c (Init_thread): move outer module condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 18:20:14 +00:00
svn 6bb3105d7e * 2013-10-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 15:25:39 +00:00
knu 42b72a08d1 * misc/ruby-additional.el: Properly quote the body. An unquoted
body given to eval-after-load is evaluated immediately!

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 15:25:34 +00:00
mame a6ae6a8b17 * ext/socket/ifaddr.c (rsock_getifaddrs): fix possible memory leak.
When a system had no interface, this function used xmalloc for root
  but did not return any reference to it.  This patch fixes it by
  immediately returning an empty array if no interface is found.
  Coverity Scan found this bug.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 12:41:28 +00:00
mame e7f484d469 * random.c (make_seed_value): a local array declaration was accessed
out of scope.  Coverity Scan found this bug.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 12:41:08 +00:00
ko1 8c0033a7b6 * gc.c: relax GC condition due to malloc_limit.
* gc.c (GC_MALLOC_LIMIT_MAX): change default value
  (256MB -> 512MB) and permit zero to ignore max value.
* gc.c (vm_malloc_increase, vm_xrealloc): do not cause GC on realloc.
* gc.c (gc_before_sweep): change debug messages.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 09:56:04 +00:00
nobu a2d21de1c8 test_io.rb: add test
* test/ruby/test_io.rb (tesst_pid_after_close_read): test for r43117.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 07:48:19 +00:00
nobu bda5eac115 io.c: wait child process after close_read
* io.c (rb_io_close_read): duplex IO should wait its child process
  even after close_read.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 07:26:54 +00:00
naruse d748f5b6eb * vm_core.h: use __has_attribute() instead of __clang__major__ because
clang says "Note that marketing version numbers should not be used
  to check for language features, as different vendors use different
  numbering schemes. Instead, use the Feature Checking Macros."
  http://clang.llvm.org/docs/LanguageExtensions.html

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 06:50:47 +00:00
naruse c1c45c1cf7 Add NEWS about RbConfig::SIZEOF
https://bugs.ruby-lang.org/issues/8568

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 06:07:58 +00:00
nobu f0d8be4e2b io.c: get rid of race condition
* io.c (rb_io_close_write): detach tied IO for writing before closing
  to get rid of race condition.  [ruby-list:49598]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 05:20:02 +00:00
svn 145ecb6872 * 2013-10-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 05:19:05 +00:00
nobu a9eca1b20d io.c: keep fptr read-closed
* io.c (rb_io_close_read): keep fptr in write_io to be discarded, to
  fix freed pointer access when it is in use by other threads, and get
  rid of potential memory/fd leak.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02 05:19:00 +00:00
charliesome d60c6c8642 * vm_core.h: use __attribute__((unused)) in UNINTIALIZED_VAR on clang
4.0+ instead of just on 4.2. Clang has supported the unused attribute
  since before version 4, so this should be safe.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-01 14:45:27 +00:00
nobu ec2db8decf tempfile.rb: undefine finalizer on unlink
* lib/tempfile.rb (Tempfile#unlink): finalizer is no longer needed
  after unlinking.  patched by by normalperson (Eric Wong) at
  [ruby-core:56521] [Bug #8768]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-01 13:03:58 +00:00
nobu 57c7de44fc * properties.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-01 12:00:26 +00:00
nobu 85ab537999 file/stat.c: fix commit miss
* ext/-test-/file/stat.c: extension library to test [Feature #8050].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-01 11:57:02 +00:00