summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-10-07* include/ruby/debug.h: add backtrace collecting APIs for profiler.ko1
* int rb_profile_frames(int start, int limit, VALUE *buff, int *lines); Collect information of frame information. * VALUE rb_profile_frame_path(VALUE frame); * VALUE rb_profile_frame_absolute_path(VALUE frame); * VALUE rb_profile_frame_label(VALUE frame); * VALUE rb_profile_frame_base_label(VALUE frame); * VALUE rb_profile_frame_first_lineno(VALUE frame); * VALUE rb_profile_frame_classpath(VALUE frame); * VALUE rb_profile_frame_singleton_method_p(VALUE frame); Get information about each frame. These APIs are designed for profilers, for example, no objectallocation, and enough information for profilers. In this version, this API collects only collect Ruby level frames. This issue will be fixed after Ruby 2.1. * vm_backtrace.c: implement above APIs. * iseq.c (rb_iseq_klass): return local_iseq's class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-07win32/file.c: make mapping at initializationnobu
* win32/file.c (code_page_i, rb_w32_init_file): make encoding to code page mapping at initialization directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-07win32/file.c: use encoding indexnobu
* win32/file.c (code_page): use encoding index, which is primary entity, instead of encoding name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-07Increase open_timeout [Bug #8986]naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-07win32/file.c: using st_tablenobu
* win32/file.c (code_page): cache using st_table, not RHash. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-07win32/file.c: check ASCII encodings firstnobu
* win32/file.c (code_page): check US-ASCII and ASCII-8bit before ordinary mapping. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-07test_io.rb: get rid of error messagenobu
* test/ruby/test_io.rb (TestIO#test_pid_after_close_read): get rid of broken pipe error message from invoked command, by let it exit silently. echo in cmd.exe does not interpret double quotes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-07* proc.c: catch up last commit.ko1
Type of return value of rb_iseq_first_lineno() is now VALUE. * vm_insnhelper.c (argument_error): ditto. * vm_method.c (rb_method_entry_make): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-07* iseq.c, internal.h: change to public (but internal) functionsko1
* VALUE rb_iseq_path(VALUE iseqval); * VALUE rb_iseq_absolute_path(VALUE iseqval); * VALUE rb_iseq_label(VALUE iseqval); * VALUE rb_iseq_base_label(VALUE iseqval); * VALUE rb_iseq_first_lineno(VALUE iseqval); And new (temporary) function: * VALUE rb_iseq_klass(VALUE iseqval); * iseq.c. vm_core.h (int rb_iseq_first_lineno): remove function `int rb_iseq_first_lineno(const rb_iseq_t *iseq)'. Use `VALUE rb_iseq_first_lineno(VALUE iseqval)' instead. * proc.c. vm_insnhelper.c, vm_method.c: catch up this change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-07win32.c: internal functionsnobu
* win32/win32.c (w32_spawn, w32_aspawn_flags): make internal functions static. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-06* 2013-10-07svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-06NEWS: timeoutnobu
* 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-06io.c: use local variables instead of struct membersnobu
* 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-06io.c: suppress false uninitialized-variable warningnobu
* 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-06signal.c: get rid of system namenobu
* 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-06test_tempfile.rb: fix test on Windowsnobu
* 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-06test_old_thread_select.rb: ignore short wait on Windowsnobu
* 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-06test_sleep.rb: get rid of failure on Windowsnobu
* 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-06test_thread.rb: ignore meaningless testnobu
* 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-05* 2013-10-06svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-05* lib/webrick.rb: [DOC] fix grammar in WEBrick overview [Fixes GH-413]zzak
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-05thread.c: fix some mutexes remaining locked after forkingnobu
* 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-05thread.c: fix some mutexes remaining locked after forkingnobu
* 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-05common.mk: revert r43137 and r43145nobu
* 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* 2013-10-05svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-05common.mk: sizes.c depends on PREP nownobu
* 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-04* ext/dbm/dbm.c: [DOC] Fix wrong constant name in DBM by @edwardzzak
[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-04gc.c: rename heap.free_num to heap.swept_numtmm1
* 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-04gc.c: add objspace_free_num and make GC.stat[:heap_free_num] use ittmm1
* 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-04gc.c: add rb_objspace.limittmm1
* 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-04common.mk: make sizes.c with MINIRUBYnobu
* 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* 2013-10-04svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-04csv.rb: foreach enumeratornobu
* 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-03fix a typokazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-03test_io.rb: fix typonobu
* 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* remove trailing spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-03win32.c: disable console colorizingnobu
* 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* gc.c: define gc_profile_record::allocated_size ifko1
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-03common.mk: use RUNRUBY for test-samplenobu
* 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-03thread_pthread.c: set thread namenobu
* 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* hash.c (env_update): [DOC] fix expected output, should be 0 insteadcharliesome
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-02rbinstall.rb: reordernobu
* 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* ext/thread/thread.c (ALIAS_GLOBAL_CONST): fix typo, GLOBCAL.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02* ext/thread/thread.c (Init_thread): move outer module condition.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02* 2013-10-03svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-10-02* misc/ruby-additional.el: Properly quote the body. An unquotedknu
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* ext/socket/ifaddr.c (rsock_getifaddrs): fix possible memory leak.mame
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* random.c (make_seed_value): a local array declaration was accessedmame
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* gc.c: relax GC condition due to malloc_limit.ko1
* 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-02test_io.rb: add testnobu
* 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