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

39081 Коммитов

Автор SHA1 Сообщение Дата
akr ce28a7539d * process.c: Release GVL when opening a file in spawn() to avoid whole
process blocking when opening a named pipe.
  (open_func): New function.
  (rb_execarg_parent_start1): Extracted from rb_execarg_parent_start and
  use rb_thread_call_without_gvl2 to release GVL when opening a file.
  (rb_execarg_parent_start): Invoke rb_execarg_parent_start1 via
  rb_protect and invoke rb_execarg_parent_end when error.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 16:33:02 +00:00
akr 6cf4e97b3e move debug functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 14:23:42 +00:00
usa 990cc562ed * test/ruby/test_process.rb
(TestProcess#test_execopts_redirect_open_order_{normal,reverse}): ignore tests
  added by r50194 on Windows because ruby cannot pass non-standard fds.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 13:47:01 +00:00
akr 3bf92fb10d * process.c (redirect_open): Removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 13:19:47 +00:00
akr f6b1dd28c9 * internal.h (rb_execarg_parent_end): Declared.
* process.c: "spawn" opens files in the parent process.
  (check_exec_redirect): Add an placeholder for fd in parameters
  for fd_open.
  (check_exec_fds_1): Delete fd_open condition.
  (check_exec_fds): Don't call check_exec_fds_1 with fd_open.
  (rb_execarg_parent_start): Open files specified as "spawn" options
  and add "dup2" options.
  (rb_execarg_parent_end): New function to close opened fds.
  (run_exec_open): Removed.
  (rb_execarg_run_options): Don't call run_exec_open.
  (rb_spawn_internal): Call rb_execarg_parent_end.

* io.c (pipe_open): Call rb_execarg_parent_end.

* ext/pty/pty.c (establishShell): Call rb_execarg_parent_end.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 12:44:35 +00:00
akr 9960558337 * internal.h (rb_execarg_parent_start): Renamed from rb_execarg_fixup.
* process.c: Follows the above change.

* io.c: Ditto.

* ext/pty/pty.c: Ditto.




git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 11:53:49 +00:00
akr 00478a98ac * process.c (fd_clear_cloexec): Extracted from run_exec_dup2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 11:35:52 +00:00
nobu e98d4947b7 ignore rake load error
rake is not available until installation now, so skip rake
packagetask even if it cannot load until it is actually needed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 06:06:56 +00:00
nobu 2cbb3d821c skip rake dependent tests
rake is not available until installation now, so skip rake
dependent tests unless it can load.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 06:01:27 +00:00
normal 9177eca302 ccan/list/list.h: sync with ccan upstream
This includes the following 5 commits from ccan upstream:

    list: list_add_after and list_add_before functions
    list: list_swap to exchange elements
    list: new list_for_each{, _safe}_off_dir_ macros
    list: add list_for_each_rev_off macro
    list: add list_for_each_rev_safe{,_off} macros

This syncs us with commit c2fbfe5282ba264f3485586e7efa8a5967f2d386
in git://git.ozlabs.org/~ccan/ccan

These ccan commits should allow us to implement compile.c and
st.c using ccan/list to reduce duplicated linked-list logic.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-09 00:30:26 +00:00
svn 17b78d0711 * 2015-04-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-08 23:24:44 +00:00
nobu 816504c29c raddrinfo.c: fix memory leak
* ext/socket/raddrinfo.c (addrinfo_mload): fix memory leak of
  addrinfo.  [ruby-dev:48923] [Bug #11051]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-08 23:24:10 +00:00
nobu 119960dc56 version.c: support RUBY_ENGINE_VERSION
* version.c (Init_version): the version of the engine or
  interpreter.  [Fix GH-858]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-08 08:45:05 +00:00
mrkn 8b9db31f94 * bigdecimal: conform to ruby's license. [ruby-core:68466] [Bug #10952]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-08 07:18:46 +00:00
usa d7abb533e2 * win32/win32.c (rb_w32_wreadlink): should treat junctions like as
symlinks.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-08 05:58:34 +00:00
ko1 0d382f4878 * test/ruby/test_symbol.rb: fix syntax error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-08 05:04:17 +00:00
nobu 622193d32a hash.c: compare symbols by identities
* hash.c (rb_any_hash): Symbols are compared by the identities
  always.  [ruby-core:68767] [Bug #11035]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-08 04:01:06 +00:00
svn ad470f1c38 * 2015-04-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-07 16:05:35 +00:00
nobu 92c3c97273 rbinstall.rb: no post install messages
* tool/rbinstall.rb: suppress post install messages of rdoc for
  older ruby versions.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-07 16:05:32 +00:00
nobu fdb3bbf194 rbinstall.rb: $script_mode
* tool/rbinstall.rb: set script files permission to $script_mode.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-07 16:05:21 +00:00
nobu a4d2997263 intern.h: stale declarations
* include/ruby/intern.h: remove stale declarations, which were
  removed because of ripper.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-07 02:44:00 +00:00
hsbt 1fa4cdf2d6 * internal.h: fix typo. Patch by @sferik [fix GH-865]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-07 01:22:57 +00:00
svn 54849da6cf * 2015-04-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-06 15:00:15 +00:00
kazu 894507c5f4 fix a typo [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-06 15:00:00 +00:00
akr 774f682952 * enum.c: Enumerable#chunk and Enumerable#slice_before no longer takes
the initial_state argument.  [Feature #10958]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-06 13:53:24 +00:00
svn 9db2bb2a5b * remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-06 07:17:21 +00:00
ko1 633574eee5 * vm_args.c: protect value stack from calling other methods
during complex parameter setting process (splat, kw, and so on).
  [Bug #11027]
* vm_core.h: remove rb_thead_t::mark_stack_len.
  With this modification, we don't need to use th->mark_stack_len.
* test/ruby/test_keyword.rb: add a test.
* cont.c (cont_capture): catch up this fix.
* vm.c (rb_thread_mark): ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-06 07:14:28 +00:00
svn 07264c40da * 2015-04-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-06 02:28:55 +00:00
naruse 886d8e3f40 * tool/downloader.rb (http_options): prevent content auto decoding
because this is a downloader.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-06 02:28:44 +00:00
usa 06d95893b0 * doc/contributing.rdoc: update Maintainers list.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-05 00:55:31 +00:00
nobu 5180de635a rbinstall.rb: same options for gems
* tool/rbinstall.rb (gem): share same options between normal
  installer and unpacked installer.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-05 00:34:27 +00:00
hsbt 09bcf7b51b * tool/rbinstall.rb: fix bin script permission of bundled gems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-05 00:11:05 +00:00
svn 854dae1706 * 2015-04-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-04 23:47:04 +00:00
hsbt 75f9f244d6 * tool/rbinstall.rb: support --program-suffix option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-04 23:46:45 +00:00
hsbt 0dd9774009 * lib/rake: removed empty directories.
* test/rake: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-04 12:34:29 +00:00
hsbt c4ee0df8ba * lib/rake/*: Gemify rake [fix GH-862][Feature #11025]
* test/rake/*: ditto.
* tool/rbinstall.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-04 12:31:31 +00:00
nobu 8c0b2a2860 string.c: check before modify
* string.c (rb_str_setbyte): check the argument first not to
  discard shared string and code range unnecessarily until
  actually changing the contents.  pointed out by headius.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-04 02:30:26 +00:00
nobu 34c83a37c2 stub.o: under win32
* cygwin/GNUmakefile.in, win32/Makefile.sub (stub.o): make under
  win32 directory.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-04 01:02:51 +00:00
nobu 8bead23815 stub.c: utf-8
* win32/stub.c (stub_sysinit): encode in UTF-8.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-04 01:01:17 +00:00
nobu 8fb5a1aceb stub.c: use argv[0] unchanged
* win32/stub.c (stub_sysinit): use argv[0] unchanged and just
  insert full path name.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-04 01:00:45 +00:00
svn c28fabfdfe * 2015-04-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-03 23:18:32 +00:00
naruse 58835a94ef * lib/net/http.rb (edit_path): use path which is absolute ftp url
on using ftp_proxy.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50157 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-03 23:18:20 +00:00
nobu 819e1756ad gmake.mk: check targets depend on main
* defs/gmake.mk (TEST_DEPENDS): all check targets need the main,
  programs and extensions have been built.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-03 02:57:11 +00:00
svn 4208d09b1a * 2015-04-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-03 02:43:44 +00:00
nobu c0bf2c5efe vm_core.h: update for OPT_CALL_CFUNC_WITHOUT_FRAME
* vm_eval.c (vm_call0_cfunc): update invoker arguments.
* vm_insnhelper.c (vm_call_cfunc_latter): ditto.
* vm_insnhelper.c (rb_vm_call_cfunc_push_frame): ditto, and prefix
  with rb_.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-03 02:43:20 +00:00
nobu 337fafc641 ChangeLog: remove garbage
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-02 07:28:29 +00:00
nobu 51bcbca236 rbconfig.rb: use program version
* common.mk, tool/mkconfig.rb: check the running ruby version in
  rbconfig.rb with the program version, as RUBY_VERSION has never
  been affected by --with-ruby-version option.
  [ruby-core:68639] [Bug #11002]
* configure.in (LIBRUBY_DLDFLAGS): compatibility_version must be
  valid version numbers, not an arbitrary string.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-02 07:27:12 +00:00
nobu 7363ffbfca * 2015-04-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-02 07:27:01 +00:00
svn 6fca58f4b0 * 2015-04-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-02 07:06:17 +00:00
nobu 7097e1c8f3 common.mk: exam
* common.mk (exam): renamed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-04-02 07:06:06 +00:00