From 11/20/2012 to 11/26/2012


11:25 PM Revision 37876: * vm_trace.c: rename TracePoint#file and TracePoint#line
to TracePoint#path and TracePoint#lineno respectively.
They are consistent to RubyVM::Backtrace::Location.
* includ...
ko1 (Koichi Sasada)
11:08 PM Revision 37875: * thread.c (rb_thread_terminate_all): broadcast eTerminateSignal
again when Ctrl-C was pressed. [Feature #1952] [ruby-dev:39107] kosaki (Motohiro KOSAKI)
11:01 PM Revision 37874: * vm_core.h: add members to rb_trace_arg_t:
* `klass_solved' represents klass and id is checked.
* `line' represents line calculated from cfp.
* `file' represent...
ko1 (Koichi Sasada)
10:49 PM Revision 37873: * thread.c (rb_thread_terminate_all): add RUBY_VM_CHECK_INTS_BLOCKING().
Otherwise the loop in this function behave as busy loop because
native_sleep() return immediately when RUBY_VM_INTE...
kosaki (Motohiro KOSAKI)
08:14 PM Revision 37872: * array.c: Fix rdoc for Array#delete [#7437]
marcandre (Marc-Andre Lafortune)
07:19 PM Revision 37871: string.c: suppress warning
* string.c (rb_str_enumerate_bytes): suppress a uninitialized variable
nobu (Nobuyoshi Nakada)
07:12 PM Revision 37870: extmk.rb: git rid of post-1.8 features
* ext/extmk.rb (extmake): git rid of post-1.8 features for cross
compilation. [ruby-core:50160] [Bug #7439]
nobu (Nobuyoshi Nakada)
04:01 PM Revision 37869: * README: mention about README.win32.
* win32/README.win32: small changes. usa (Usaku NAKAMURA)
03:17 PM Revision 37868: * 2012-11-27
03:17 PM Revision 37867: * thread.c (rb_mutex_trylock, rb_mutex_unlock, mutex_sleep):
raises ThreadError if called from trap handler as Thread#join.
* NEWS: news fot the above.
kosaki (Motohiro KOSAKI)
02:55 PM Revision 37866: * NEWS: update for Thread#join incompatible change.
kosaki (Motohiro KOSAKI)
01:47 PM Revision 37865: * thread.c (rb_thread_terminate_all): use native_sleep() instead
of rb_thread_schedule(). Otherwise, it consume 100% cpu meaninglessly.
[Bug #5368] [ruby-dev:44546]
* thread.c (thr...
kosaki (Motohiro KOSAKI)
12:17 PM Revision 37864: * vm_core.h (RUBY_VM_SET_TIMER_INTERRUPT, RUBY_VM_SET_INTERRUPT)
(RUBY_VM_INTERRUPTED): use enum symbol instead of immed...
kosaki (Motohiro KOSAKI)
11:45 AM Revision 37863: * thread.c (thread_join_m): use th->interrupt_mask instead of
* vm_core.h (struct rb_thread_struct): remove in_trap member.
* signal.c (signal_exec): ditto.
* thread...
kosaki (Motohiro KOSAKI)
11:25 AM Revision 37862: * test/ruby/test_argf.rb (TestArgf#test_chars): since marshal data is
binary, shouldn't pass via text mode. use base64 encoded data. usa (Usaku NAKAMURA)
10:57 AM Revision 37861: * ruby_atomic.h (ATOMIC_CAS): new macro for compare-and-exchange.
* vm_core.h (struct rb_thread_struct): add interrupt_mask member.
* thread.c (thread_create_core, Init_Thread): initi...
kosaki (Motohiro KOSAKI)
10:46 AM Revision 37860: * iseq.c (make_compile_option_value): add trace_instruction option.
a patch by davidbalbert (David Albert).
[Bug #6786]
ko1 (Koichi Sasada)
10:14 AM Revision 37859: * bootstraptest/test_thread.rb: try to `join' each 100
This benchmark seems consuming long time on travis-ci
several times (and make `failure').
ko1 (Koichi Sasada)
09:30 AM Revision 37858: * specify label `built-ruby'.
* benchmark/driver.rb: quote path. ko1 (Koichi Sasada)
09:28 AM Revision 37857: * signal.c (signal_exec): add volatile to make sure setjmp safe.
kosaki (Motohiro KOSAKI)
09:25 AM Revision 37856: * signal.c (signal_exec): suppress "warning: variable 'signum'
might be clobbered by 'longjmp' or 'vfork'" warning. kosaki (Motohiro KOSAKI)
09:22 AM Revision 37855: split trap interrupt and async interrupt
kosaki (Motohiro KOSAKI)
09:19 AM Revision 37854: * benchmark/driver.rb: accept multiple `-e'.
You don't need to use `;' separation character.
[ruby-core:50139] [ruby-trunk - Bug #7380]
ko1 (Koichi Sasada)
08:13 AM Revision 37853: * string.c (rb_str_enumerate_chars, rb_str_enumerate_codepoints)
(rb_str_enumerate_lines): suppress "may be used uninitialized in
this function" warning.
kosaki (Motohiro KOSAKI)
08:05 AM Revision 37852: * vm_core.h (rb_thread_struct): added 'in_trap' member for marking
running trap handler.
* signal.c (signal_exec): turn on in_trap when running trap.
* thread.c (Init_Thread, thread_cr...
kosaki (Motohiro KOSAKI)
07:37 AM Revision 37851: * io.c (argf_each_codepoint): add missing ARGF#codepoints [Bug #7438]
naruse (Yui NARUSE)
07:00 AM Revision 37850: * bignum.c (bigdivrem): restart calculation when bigdivrem1 was
interrupted by signal. Otherwise, ruby script may see a garbage
kosaki (Motohiro KOSAKI)
06:49 AM Revision 37849: * bignum.c (big_div_struct): added volatile to 'stop' member.
Otherwise, "if (bds->stop)" check in bigdivrem1 don't read
memory and ignore interrupt.
* bignum.c (bigdivrem, rb_b...
kosaki (Motohiro KOSAKI)
03:12 AM Revision 37848: string.c: suppress warnings
* string.c (rb_str_enumerate_{lines,chars,codepoints}): suppress
uninitialized variable warnings.
nobu (Nobuyoshi Nakada)
03:11 AM Revision 37847: Makefile.sub: fix r37821
* win32/Makefile.sub (DLNOBJ): missing in r37821. nobu (Nobuyoshi Nakada)
01:57 AM Revision 37846: * test/ruby/test_process.rb (test_setsid): added a few wait for
preventing that Process.getsid( makes Errno::ESRCH.
(refix r37844)
kosaki (Motohiro KOSAKI)


04:59 PM Revision 37845: * 2012-11-26
04:59 PM Revision 37844: * test/ruby/test_process.rb (test_setsid): call Process.getsid for
child process in child process. because parent process call
Process.getsid with, Errno::ESRCH could be raised.
nagachika (Tomoyuki Chikanaga)
01:39 PM Revision 37843: array.c: refactoring of rb_ary_delete_same()
* array.c (ary_resize_smaller): new function to resize array.
* array.c (rb_ary_delete): refactoring to extract a fu...
01:28 PM Revision 37842: * array.c: fixes for the updated documentation in r35858:
Typos and #take/#drop accept to take/drop 0 elements. Eregon (Benoit Daloze)
10:45 AM Revision 37841: * NEWS: add a news about iconv.
ktsj (Kazuki Tsujimoto)
07:39 AM Revision 37840: Fix test to follow r37838
naruse (Yui NARUSE)


06:51 PM Revision 37839: Move tests embedded in lib/set.rb to test/test_set.rb.
knu (Akinori MUSHA)
06:46 PM Revision 37838: String#{lines,chars,codepoints,bytes} now return an array.
* string.c (rb_str_each_line, rb_str_lines): String#lines now
returns an array instead of an enumerator. Passing a...
knu (Akinori MUSHA)
05:14 PM Revision 37837: * 2012-11-25
05:14 PM Revision 37836: Fix tests of rb_warning().
* test/ruby/envutil.rb (Test::Unit::Assertions#assert_warning)
(Test::Unit::Assertions#assert_warn), test/ruby/envu...
knu (Akinori MUSHA)
12:26 PM Revision 37835: gc.c: refactoring to rename variables
* gc.c (wmap_final_func): rename variables to clarify the meaning.
In wmap2obj the key is WeakRef and the value is ...
12:26 PM Revision 37834: Fix WeakRef finalize
* array.c (rb_ary_delete_same_obj): new function for WeakRef.
This deletes same objects as item argument in the arr...
12:09 PM Revision 37833: * ext/nkf/nkf-utf8/nkf.c (unicode_iconv_combine): returning flags are
nkf_char. naruse (Yui NARUSE)
10:31 AM Revision 37832: * test/ruby/test_rubyoptions.rb (test_usage, test_usage_long):
reduced, renamed. tadf (tadayoshi funaba)
07:43 AM Revision 37831: Rvert r37827 and r37828
Revert "Fix finalize of WeakRef"
This causes segv on rubyspec.
naruse (Yui NARUSE)
04:12 AM Revision 37830: * vm_trace.c (rb_tracepoint_attr_raised_exception): should not check
value before event checking.
* vm_trace.c (rb_tracepoint_attr_return_value): ditto.
* test/ruby/test_settracefunc.rb:...
ko1 (Koichi Sasada)
04:01 AM Revision 37829: Fix TestProcess#test_setsid
* test/ruby/test_process.rb (TestProcess#test_setsid): "./ruby-trunk"
doesn't work on all environments. EnvUtil.rub...
04:01 AM Revision 37828: Fix Segmentation fault at TestArray#test_aref
* array.c (rb_ary_aref): fix Segmentation fault at TestArray#test_aref
on x64 mingw. Variable argument of rb_scan_a...
04:01 AM Revision 37827: wmap_finalize: refactoring to rename variables
* gc.c (wmap_final_func): rename variables to clarify the meaning.
In wmap2obj the key is WeakRef and the value is ...
04:01 AM Revision 37826: Fix finalize of WeakRef
* gc.c (wmap_final_func): remove WeakRef object reference from the
* gc.c (wmap_finalize): remove recycled ...
02:51 AM Revision 37825: * process.c (proc_getsid): adds new method for getting session id.
Contributed from fumiyas (Fumiyasu SATOH). Thank you!
[Feature #6757] [ruby-dev:45977]
* adds getsid ...
kosaki (Motohiro KOSAKI)
02:00 AM Revision 37824: * thread.c (thread_create_core): don't use th->thread_id before
initialized. kosaki (Motohiro KOSAKI)


03:00 PM Revision 37823: ruby.c: argv check
* ruby.c (proc_options, process_options, ruby_process_options): take
care of the case argc is 0, and check if argv ...
nobu (Nobuyoshi Nakada)
03:00 PM Revision 37822: * 2012-11-24
03:00 PM Revision 37821: --disable-dln
* (--disable-dln): option to disable dynamic linking
feature. [ruby-core:37676] [Feature #4946]
nobu (Nobuyoshi Nakada)
02:44 PM Revision 37820: mkmf.rb: mingw64+MSYS pkg-config fix
* lib/mkmf.rb (MakeMakefile#pkg_config): strip all white spaces for
mingw64+MSYS pkg-config which errouneously emit...
nobu (Nobuyoshi Nakada)
01:49 PM Revision 37819: mkrunnable.rb: static-linked-ext
* tool/mkrunnable.rb: make archdir for static-linked-ext. nobu (Nobuyoshi Nakada)
08:31 AM Revision 37818: ruby.c: wrap descriptions
* ruby.c (usage): wrap description lines if options are too long. nobu (Nobuyoshi Nakada)
08:31 AM Revision 37817: * ruby.c, test/ruby/test_rubyoptions.rb: revert r37815:r37816.
nobu (Nobuyoshi Nakada)
03:35 AM Revision 37816: * ruby.c: revert r37298.
tadf (tadayoshi funaba)
02:41 AM Revision 37815: * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_usage2):
revert the previous. tadf (tadayoshi funaba)
02:13 AM Revision 37814: test_rubyoptions.rb: refine assertion
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_usage2): refine
nobu (Nobuyoshi Nakada)
02:12 AM Revision 37813: test_rubyoptions.rb: --help
* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_usage2): now
--help option is for modern terminals.
nobu (Nobuyoshi Nakada)
01:46 AM Revision 37812: * ext/socket/ipsocket.c (IPSocket#peeraddr): Fix example
[ruby-core:46429] [Bug #6732] zzak (Zachary Scott)


05:42 PM Revision 37811: * lib/cgi/core.rb: Documentation for CGI#header alias
Based on a patch by Marcus Stollsteimer
[ruby-core:49585] [Bug #7405]
zzak (Zachary Scott)
03:04 PM Revision 37810: * 2012-11-23
03:03 PM Revision 37809: * gc.c (is_swept_object): extract from is_dead_object().
* gc.c (rb_gcdebug_print_obj_condition): add the function for debug.
This function shows some conditions of given o...
02:55 PM Revision 37808: Fix cache validity check of require
* array.c (rb_ary_shared_with_p): fix cache validity check.
If #pop or #shift has been called against $: or $", the...
01:00 PM Revision 37807: fix typos
12:49 PM Revision 37806: *, win32/Makefile.sub (probes.dmyh): now be made in current
(=build) directory if build from the repository. usa (Usaku NAKAMURA)
12:36 PM Revision 37805: * test/ruby/test_rubyoptions.rb: added a test.
tadf (tadayoshi funaba)
11:32 AM Revision 37804: * complex.c (string_to_c_strict, string_to_c): check NUL.
* rational.c (string_to_r_strict, string_to_r): ditto. tadf (tadayoshi funaba)
11:25 AM Revision 37803: * (.dmyh.h): removed $(VPATH). GNU make don't
recognize suffix rule with VPATH. kosaki (Motohiro KOSAKI)
09:16 AM Revision 37802: *,, win32/Makefile.sub (.dmyh.h): nmake merges
explicit rules for same target, but not merges exlicit rules and
implicit rules -- always explict rules win. So, n...
usa (Usaku NAKAMURA)
09:03 AM Revision 37801: * (probes.o): add -C to ignore #include in probes.d.
* probes.d: include vm_opts.h instead of vm_core.h.
* vm_opts.h (VM_COLLECT_USAGE_DETAILS): move definition from vm_...
naruse (Yui NARUSE)
08:47 AM Revision 37800: * ext/nkf/nkf-utf8: Merge b0a6577a521d1bba5e19853f95d5c4b9be1072b5.
Support JIS X 0213 and some bugfixes. naruse (Yui NARUSE)
08:41 AM Revision 37799: * tool/gen_dummy_probes.rb: don't change #include, #if and #endif
lines. [Bug #7370] kosaki (Motohiro KOSAKI)
08:01 AM Revision 37798: * run preprocessor when making probe.h
* probes.d: define probe insn and insn__operand only when
kosaki (Motohiro KOSAKI)
07:23 AM Revision 37797: * vm.c: Don't define vm_collect_usage_operand() and
static void vm_collect_usage_insn() when disabling
kosaki (Motohiro KOSAKI)
06:28 AM Revision 37796: * vm_insnhelper.h: partly revert r37631 (DTrace support).
"vm usage information is always collected, so uncomment the
functions." causes performance impact. [Bug #7370]
naruse (Yui NARUSE)
05:54 AM Revision 37795: Drop executable bits of files that are not executable.
knu (Akinori MUSHA)
05:32 AM Revision 37794: Drop executable bits.
knu (Akinori MUSHA)
05:23 AM Revision 37793: Apply performance improvement to short byte array search.
* re.c (rb_memsearch_ss): Apply performance improvement to short
byte array search for platforms without memmem(3)....
knu (Akinori MUSHA)
05:02 AM Revision 37792: Add some corner cases to tests for String#index.
* test/ruby/test_string.rb (TestString#test_index): Add some
corner cases to tests for String#index, which might fa...
knu (Akinori MUSHA)


11:09 PM Revision 37791: * test/ruby/test_gc.rb (test_profiler_clear): fix wrong method
calls [Bug #7419] [ruby-core:49828]. nari
05:26 PM Revision 37790: * 2012-11-22
05:25 PM Revision 37789: * NEWS: edited (order etc).
tadf (tadayoshi funaba)
02:37 PM Revision 37788: fix typos
01:54 PM Revision 37787: property.
nobu (Nobuyoshi Nakada)
01:53 PM Revision 37786: wait.c: wait_readable
* ext/io/wait/wait.c (io_wait_readable): add alias wait_readable. nobu (Nobuyoshi Nakada)
01:40 PM Revision 37785: io/wait: add IO#wait_writable method
* ext/io/wait/wait.c (io_wait_writable): this is easier to use than for a single IO object and is immune ...
nobu (Nobuyoshi Nakada)
01:31 PM Revision 37784: * gc.c (garbage_collect): remove a duplicative probe.
01:15 PM Revision 37783: * gc.c (gc_profile_clear): realloc profile records if its size is
higher than the threshold, GC_PROFILE_RECORD_DEFAULT_SIZE * 2. nari
12:54 PM Revision 37782: * complex.c (nucomp_to_c): added.
tadf (tadayoshi funaba)
12:42 PM Revision 37781: * include/ruby/util.h: removed extra semicolon in definition of
* compile.c: ditto.
* cont.c: ditto.
* math.c: ditto.
* node.c: ditto.
* parse.y: ditto.
tadf (tadayoshi funaba)
09:48 AM Revision 37780: * rational.c (read_digits): due to a bit tighter rb_cstr_to_inum().
tadf (tadayoshi funaba)
07:36 AM Revision 37779: add a ML number
ko1 (Koichi Sasada)
07:16 AM Revision 37778: add a description on ChangeLog
ko1 (Koichi Sasada)
07:15 AM Revision 37777: * benchmark/bm_so_nsieve_bits.rb: add an encoding pragma.
ko1 (Koichi Sasada)
05:09 AM Revision 37776: revert r37710, requested by Tadayoshi Funaba [ruby-dev:46575]
shyouhei (Shyouhei Urabe)
04:23 AM Revision 37775: * range.c (rb_range_beg_len): Fix potential bug for limit case [#6203]
marcandre (Marc-Andre Lafortune)


04:00 PM Revision 37774: * file.c (Init_File): null device definition uses rb_define_const
instead of rb_file_const. kosaki (Motohiro KOSAKI)
03:29 PM Revision 37773: * test/ruby/test_m17n_comb.rb (test_str_crypt): Use RbConfig to get
libc's directory. Patched by Vit Ondruch [ruby-core:49763] [Bug #7312] naruse (Yui NARUSE)
03:17 PM Revision 37772: * marshal.c: add marshal readahead. marshalized Array, Hash and Struct
have size at least number of its elements, marshal readahead will
read the certain readable length and buffer when ...
03:03 PM Revision 37771: * 2012-11-21
03:03 PM Revision 37770: * array.c (rb_get_values_at): Improve rdoc
marcandre (Marc-Andre Lafortune)
02:53 PM Revision 37769: * NEWS: List incompatible change for Array#values_at [#6203]
marcandre (Marc-Andre Lafortune)
01:48 PM Revision 37768: * (.d.h): replace char * to const char * because somehow
current dtrace removes const of function declaration in probes.d. naruse (Yui NARUSE)
01:17 PM Revision 37767: fix a typo
01:09 PM Revision 37766: fix guards for glibc crypt(3) see #7312
naruse (Yui NARUSE)
12:57 PM Revision 37765: * include/ruby/debug.h: introdudced.
Debugging/profiling features will be located.
* vm_trace.c: expose C-level TracePoint APIs.
Note that they are expe...
ko1 (Koichi Sasada)
12:49 PM Revision 37764: * (RUBY_DTRACE_AVAILABLE): only check dtrace availability.
* (RUBY_DTRACE_POSTPROCESS): restore. naruse (Yui NARUSE)
12:41 PM Revision 37763: fix typos
12:39 PM Revision 37762: fix typos
12:39 PM Revision 37761: fix indent
12:34 PM Revision 37760: file.c: fix rdoc
* file.c (rb_file_s_extname): fix rdoc for an edge case. nobu (Nobuyoshi Nakada)
12:34 PM Revision 37759: remove trailing spaces.
nobu (Nobuyoshi Nakada)
12:34 PM Revision 37758: * test/win32ole/test_win32ole_type.rb (test_implemented_ole_types):
IShellDispatch6 bundled in Windows 8. Thanks to phasis68 (Heesob
Park). [ruby-core:49580][Bug #7403]
suke (Masaki Suketa)
12:10 PM Revision 37757: * complex.c: some improvements.
* rational.c: ditto. tadf (tadayoshi funaba)
12:01 PM Revision 37756: fix for BSD make
* (incs): BSD make cannot deal with non-prefixed dependency
and prefixed target.
nobu (Nobuyoshi Nakada)
11:13 AM Revision 37755: * array.c (rb_ary_bsearch): fix rdoc bug (O(n log n) -> O(log n)).
Patch by Charlie Somerville. [ruby-core:49661] [Bug #7409]
* range.c (range_bsearch): ditto.
mame (Yusuke Endoh)
11:13 AM Revision 37754: add a ticket number
ko1 (Koichi Sasada)
11:05 AM Revision 37753: * vm_trace.c: rename and add TracePoint APIs.
(1){...} creates a new trace point
but does not make it enable.
(2) TracePoint.trace(...){......
ko1 (Koichi Sasada)
09:48 AM Revision 37752: * vm_trace.c: add two methods:
(1) TracePoint#return_value which returns return
value on the :return and :c_return event.
(2) TracePoint#raised_...
ko1 (Koichi Sasada)
08:47 AM Revision 37751: Add extra line to prevent syntax error
naruse (Yui NARUSE)
08:35 AM Revision 37750: * fix dtrace didn't work on darwin.
naruse (Yui NARUSE)
06:37 AM Revision 37749: * file.c (File.extname): Documentation for extname on dotfiles and
files ending with a dot. Also, added example for this.
[ruby-core:47852] [Bug #7112]
zzak (Zachary Scott)
05:39 AM Revision 37748: fix typo
kosaki (Motohiro KOSAKI)
05:39 AM Revision 37747: * test/ruby/test_signal.rb (TestSignal#test_signame): fix windows
test failure. Process.kill on windows can't send a signal to
another process.
kosaki (Motohiro KOSAKI)
05:00 AM Revision 37746: * io.c (Init_IO): removed all rb_file_const() into file.c.
* file.c (Init_File): replace with rb_file_const() with
rb_define_const() because RDoc don't care rb_file_const.
kosaki (Motohiro KOSAKI)
03:37 AM Revision 37745: * ruby.c (usage_msg): Fix typo [ruby-core:49205] [Bug #7327]
zzak (Zachary Scott)
03:34 AM Revision 37744: * file.c (File::NULL): Document File::NULL constant
[ruby-core:49384] [Bug #7365] zzak (Zachary Scott)
03:07 AM Revision 37743: * win32/win32.c (rb_w32_read): Windows 8 fixed one of a bug of console
based on the patch by Heesob Park at [ruby-core:49479] [Bug #7379]
usa (Usaku NAKAMURA)
02:21 AM Revision 37742: * (--enable-dtrace): always call RUBY_DTRACE_BSD_BROKEN
for portability.
As the note, FreeBSD 8 has DTrace as the optional
feature (it is enabled by the build option), b...
naruse (Yui NARUSE)
02:05 AM Revision 37741: * lib/tracer.rb (Tracer.trace_func): printf to stdout
Patch by Michal Fojtik [ruby-core:45219] [Bug #6490] zzak (Zachary Scott)
01:21 AM Revision 37740: revert r37730
kosaki (Motohiro KOSAKI)
01:18 AM Revision 37739: Revert "* (--enable-dtrace): change help message"
This reverts commit 029b59ba53d0cc42630d623b52d94cae0df62734.
When $rb_cv_prog_dtrace_g is yes on FreeBSD even if /us...
naruse (Yui NARUSE)
12:51 AM Revision 37738: * 2012-11-20
12:51 AM Revision 37737: Remove probes.o before update
naruse (Yui NARUSE)
12:50 AM Revision 37736: Don't send INT signal itself.
On make test-all, it kills the process. naruse (Yui NARUSE)

Also available in: Atom