summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-01-31thread_pthread.c: Fix intermittent SIGBUS on Linuxnobu
* thread_pthread.c (reserve_stack): fix intermittent SIGBUS on Linux, by reserving the stack virtual address space at process start up so that it will not clash with the heap space. [Fix GH-822] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-30common.mk: link DTRACE_OBJnobu
* common.mk (COMMONOBJS): include $(DTRACE_OBJ) which is necessary for $(DTRACE_DEPENDENT_OBJS). * configure.in (RUBY_DTRACE_POSTPROCESS): separate whether dtrace is needed to genearate probes.o and whether it modifies input object files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-30math.c: optimization for Bignumnobu
* math.c (num2dbl_with_to_f): make faster when Bignum passed by direct conversion using rb_big2dbl(). [Feature #10800] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-29* 2015-01-30svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-29* string.c: [DOC] Specify to_s on subclasses [ci skip]marcandre
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-29* ext/bigdecimal/bigdecimal.c (rb_rational_num): add fallback functionmrkn
for rubies lower than 2.2.0. * ext/bigdecimal/bigdecimal.c (rb_rational_den): ditto. * ext/bigdecimal/extconf.rb: check the existences of struct RRational, rb_rational_num, and rb_rational_den. * ext/bigdecimal/bigdecimal.bundle: bump version. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-29parse.y: no optimization in defined?nobu
* parse.y (logop_gen): no needs for optimization in defined? operator. literal conditions are optimized away eventually. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-29parse.y: condition nodenobu
* parse.y (logop_gen): keep non-null condition node. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-29* tool/make-snapshot: removed md5 digest with package infomationhsbt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-29rbinstall.rb: literal colonnobu
* tool/rbinstall.rb (PROLOG_SCRIPT): ":" in "Use Alternate Value" parameter expansion is not a path separator, but a literal colon. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-29parse.y: optimize conditionsnobu
* parse.y (new_if_gen, logop_gen): simplify constant conditional expressions to help the optimizer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-29math.c: deoptimizenobu
* math.c (Get_Double): restrict direct casting only when Fixnum#to_f is not redefined, and convert with rb_to_float(). [Feature #10785] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-29math.c: Get_Doublenobu
* math.c (Get_Double): direct casting from Fixnum to double. [Feature #10785] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-28* ext/psych/lib/psych/visitors/to_ruby.rb: fix parsing hashes withtenderlove
instance variables when it is referenced multiple times. * ext/psych/lib/psych.rb: bump version * ext/psych/psych.gemspec: bump version * test/psych/test_hash.rb: test for fix git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-28* 2015-01-29svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-28thread.c: micro-optimize thread create/joinnormal
* thread.c (struct join_arg): restructure and make smaller (thread_join_sleep): avoid timeofday() call if forever (thread_join): pass join_arg.delay directly (rb_thread_inspect_msg): remove, inline into rb_thread_inspect (rb_thread_inspect): reduce branching and string creation * thread_pthread.c (native_set_thread_name): create string directly to avoid reparsing. [Misc #10723] This reduces time in benchmark/bm_vm_thread_create_join.rb by a few percent. Minor improvements only: target 0: 2.1.5 (ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux]) target 1: trunk (ruby 2.3.0dev (2015-01-16 trunk 49282) [x86_64-linux]) target 2: built (ruby 2.3.0dev (2015-01-16 trunk 49282) [x86_64-linux]) benchmark results: minimum results in each 3 measurements. Execution time (sec) name 2.1.5 trunk built vm_thread_create_join 1.049 1.242 1.138 Speedup ratio: compare with the result of `2.1.5' (greater is better) name trunk built vm_thread_create_join 0.845 0.923 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-28* 2015-01-28svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-28* thread.c: Improve documentation for Thread#valuehsbt
[Bug #10694][ruby-core:67324][ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-27* tool/redmine-backporter.rb: added `!` command.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-27* tool/redmine-backporter.rb: added history feature for platforms whichusa
lack readline. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-27Makefile.in: dtrace-specific stuffsnobu
* Makefile.in (DTRACE_DEPENDENT_OBJS): move dtrace-specific stuffs from common.mk. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-27vcs.rb: include svn property commitsnobu
* tool/vcs.rb (VCS::GIT.get_revisions): omit "." to include svn property only commits. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-27. (svn:ignore): remove useless linesnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-27enc/trans: ignore timestamp filenobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-27* 2015-01-27svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-27cstr.c: nil iff terminated validlynobu
* ext/-test-/string/cstr.c (bug_str_cstr_term_char): return nil only when terminated validly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-26* .gitignore: ignored temporary file with git.hsbt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-26* misc/ruby-electric.el: Import version 2.2.2 fromknu
https://github.com/knu/ruby-electric.el. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-26configure.in: check dtace -Gnobu
* configure.in (RUBY_DTRACE_POSTPROCESS): check if the object file is really modified by `dtrace -G`, this command is very system dependent. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-26configure.in: -Wno-maybe-uninitializednobu
* configure.in (warnflags): add -Wno-maybe-uninitialized for gcc 5, to suppress false warnings in thread.c:do_select(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-26string.c: term fillnobu
* string.c (str_buf_cat): fill wchar terminator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-26string.c: use local variablesnobu
* string.c (str_buf_cat): use local variables instead of repeating macros. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-26string.c: consider widecharnobu
* string.c (str_make_independent_expand): consider wide char encoding. [Fix GH-821] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-26string.c: terminate when embeddednobu
* string.c (str_make_independent_expand): terminate String when moved from heap to embedded. [Fix GH-821]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-26* 2015-01-26svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-26cstr.c: cstr_term_char class methodnobu
* ext/-test-/string/cstr.c (bug_str_s_cstr_term_char): add a class method to see plain Strings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-26cstr.c: get rid of exceptionnobu
* ext/-test-/string/cstr.c (bug_str_cstr_term_char): get rid of invalid byte sequence exception. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-25fix typo [ci skip]kazu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-25array.c: reduce to_ary callnobu
* array.c (flatten): no need to call to_ary method on elements beyond the given level. [ruby-core:67637] [Bug #10748] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-25test_array.rb split flatten testsnobu
* test/ruby/test_array.rb (test_flatten, test_flatten!): split. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-24* 2015-01-25svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-24libffi: workaround of VC12 mlnobu
* ext/fiddle/win32/libffi.mk.tmpl: assemble without directory prefix. workaround of a bug of VC12 ml, by unak at [ruby-core:67792]. [ruby-core:67789] [Bug #10780] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-24dln_find.c: define S_ISREGnobu
* dln_find.c (dln_find_1): on some platforms, S_ISREG() is not provided. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-24ruby.c: only for load-relativenobu
* ruby.c (dladdr_path): used only when load-relative is enabled. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-24ruby.c: replace with real pathnobu
* ruby.c (dladdr_path): replace the executable path with symlinked real path. dladdr(3) on Linux returns the argv[0] as dli_fname instead of the real path, for a symbol defined in the executable file itself. [Bug #10776] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-24dln_find.c: regular files onlynobu
* dln_find.c (dln_find_1): search regular files only. based on the patch by Alex Coomans in [ruby-core:67766]. [Bug #10776] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-24* 2015-01-24svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-24dln_find.c: regular files onlynobu
* dln_find.c (dln_find_1): search regular files only. based on the patch by Alex Coomans in [ruby-core:67766]. [Bug #10776] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-23vm_insnhelper.c: break from nested rescuenobu
* vm_insnhelper.c (vm_throw_start): search the target to break from a block with nested rescue, from the nested blocks. [ruby-core:67765] [Bug #10775] [Fix GH-820] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-01-23marshal.c: indetity tablesnobu
* marshal.c (w_object, marshal_dump): use indetity tables for arbitrary VALUE keys, because of performance of FLONUM. [Bug #10761] * marshal.c (obj_alloc_by_klass, marshal_load): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e