aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* id.def: attrsetnobu2014-11-141-2/+3
| | | | | | | * defs/id.def: add attrset IDs, which no longer shares serial numbers with local name IDs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * NEWS: mention about IO#nonblock_{read,write} of Windows' pipe.usa2014-11-141-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* proc.c: adjust argument typenobu2014-11-141-1/+1
| | | | | | | * proc.c (proc_new): adjust `is_lambda` argument type to `rb_vm_make_proc_lambda` to suppress a warning by VC6. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: guard by #if/#endif with GC_ENABLE_INCREMENTAL_MARKko12014-11-142-4/+39
| | | | | | | | | to hide unused codes. * gc.c: similar to GC_ENABLE_LAZY_SWEEP. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_eval.c (rb_eval_cmd): use pre-defined idCallnormal2014-11-142-1/+5
| | | | | | | | | | | No need to use rb_intern, here. Reduces size slightly on x86-64: $ ~/linux/scripts/bloat-o-meter ruby.before ruby.after add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-31 (-31) function old new delta rb_eval_cmd 813 782 -31 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_eval.c (rb_yield_splat): add missing GC guardnormal2014-11-142-0/+6
| | | | | | | | | Nobody uses this function in our source tree, but maybe this bug is triggered by certain C extensions. [Bug #10509] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: fix build error caused by implicit conversion with clang.hsbt2014-11-132-1/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* insns.def (opt_succ): remove Time#succ optimizationnormal2014-11-132-4/+5
| | | | | | | | | | | | | | | Time#succ is a deprecated method and not frequently used, so this wastes icache in vm_exec_core. Using bloat-o-meter in the Linux kernel source to shows a small reduction on my x86-64 system: $ ~/linux/scripts/bloat-o-meter ruby.before ruby.after add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-57 (-57) function old new delta vm_exec_core 24216 24159 -57 [Feature #10501] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: refactoring.ko12014-11-132-4/+13
| | | | | | | | | * gc.c: use GC_ENABLE_INCREMENTAL_MARK instead of USE_RINCGC. * gc.c (gc_start): check FORCE_MAJOR_GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c: Tuning RincGC parameters.ko12014-11-132-8/+54
| | | | | | | | | | | | | | | | | | | Before this patch, gc_marks_step() marks (white -> grey) fixed number objects. However, this strategy does not fit practical cases, for example too slow to make progres. This patch changes this strategy how many objects the gc_marks_step() should handle. We can estimate how many times gc_marks_step() is called during this major marking (== C) with the free slot number in pooled pages. We also can estimate the living object number (== L) using last marked_slots value. We can solve this problem (how many objects should be process in gc_marks_step()) by L/C. * gc.c (rb_objspace_t): add rb_objspace_t::rincgc::pooled_sltos and step_slots. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * remove trailing spaces.svn2014-11-131-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (search_response): parse MODSEQ in SEARCHshugo2014-11-133-1/+21
| | | | | | responses properly. [ruby-core:64203] [Bug #10112] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-11-14svn2014-11-131-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/lib/envutil.rb: Moved from test/ruby/.akr2014-11-13121-124/+18
| | | | | | | | | | | | | | * test/lib/find_executable.rb: Ditto. * test/lib/memory_status.rb: Ditto. * test/lib/test/unit.rb: require envutil. * test/: Don't require envutil in test files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rexml/document.rb: add REXML::Document#document.nagachika2014-11-134-0/+61
| | | | | | reported by Tomas Hoger <thoger@redhat.com> and patched by nahi. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/monitor/test_monitor.rb: Use assert_join_threads.akr2014-11-132-60/+76
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/openssl: Don't specify port number.akr2014-11-135-42/+37
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/openssl/ssl_server.rb: Unused file removed.akr2014-11-133-83/+6
| | | | | | | | It is not used since r16111, Ruby 1.9.1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eval.c: obsolete comment [ci skip]nobu2014-11-132-2/+5
| | | | | | | * eval.c (rb_ensure): remove obsolete prot_tag comment. patch by Jack Danger at [ruby-core:66238]. [misc #10502] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* proc.c: make lambda directlynobu2014-11-134-12/+15
| | | | | | | * vm.c (rb_vm_make_proc_lambda): similar to rb_vm_make_proc() with is_lambda argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/bigdecimal/test_bigdecimal.rb: Add test for mult by nil.headius2014-11-131-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* internal.h: definenobu2014-11-131-1/+1
| | | | | | * internal.h (STATIC_ASSERT): fix missing preprocessor directive. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rb_w32_fstat{,i64}: speed up. adjuting timestamps in this functionusa2014-11-132-1/+15
| | | | | | | | | is to get rid of the side effect of ENV["TZ"]. then, if ENV["TZ"] is not set, no need to adjust. this change makes File#stat about 60% faster. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* internal.h: STATIC_ASSERTnobu2014-11-134-8/+17
| | | | | | * st.c: include "internal.h" for STATIC_ASSERT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-11-13svn2014-11-121-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c (struct heap_page): trivial packingnormal2014-11-122-6/+10
| | | | | | 304 => 296 bytes on x86-64 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gems/bundled_gems: Update to test-unit 3.0.6 and minitest 5.4.3.hsbt2014-11-122-2/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/*: Update to RubyGems 2.4.3 master (7b1f684).hsbt2014-11-124-1/+62
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_unicode_normalize.rb: skip only oncenobu2014-11-111-2/+3
| | | | | | | * test/test_unicode_normalize.rb (setup): skip only once, and silently ignore other tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_unicode_normalize.rb: skip if not foundnobu2014-11-111-0/+2
| | | | | | | * test/test_unicode_normalize.rb (read_tests): do nothing if the test data file is not found. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tables.rb: addnobu2014-11-113-3/+1164
| | | | | | | * lib/unicode_normalize/tables.rb: commit not to download and convert Unicode data files every time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: relax dependencynobu2014-11-111-1/+2
| | | | | | | * common.mk (lib/unicode_normalize/tables.rb): should depend on Unicode data files only when downloading. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-11-12svn2014-11-111-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_object.rb: Specify an exception class for rescue clause.akr2014-11-115-4/+14
| | | | | | | | | | | * test/dbm/test_dbm.rb: Ditto. * test/gdbm/test_gdbm.rb: Ditto. * test/sdbm/test_sdbm.rb: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fileutils/test_fileutils.rb: Use assert_join_threads.akr2014-11-112-5/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/resolv/test_dns.rb: Use assert_join_threads.akr2014-11-112-64/+68
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/pop/test_pop.rb: Use assert_join_threads.akr2014-11-112-12/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/net/http/test_https_proxy.rb: Use assert_join_threads.akr2014-11-112-14/+21
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (prelude.c): search from source directory,nobu2014-11-113-1/+7
| | | | | | not depending on VPATH, in parallel to r35135. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* unicode_norm_gen.tmpl: fix build errornobu2014-11-111-1/+1
| | | | | | | * template/unicode_norm_gen.tmpl: fix build error on CentOS 5 with ruby 1.8.5 which lacks Symbol#to_proc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: nmakenobu2014-11-111-9/+9
| | | | | | * common.mk (prelude.c): workaround for nmake. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* make-snapshot: no wait unless needednobu2014-11-111-1/+3
| | | | | | | | * tool/make-snapshot (package): no wait when using already exported source without modification, assuming exported 2 seconds (the lowest timestamp resolution) ago or more. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* common.mk: preludesnobu2014-11-111-0/+1
| | | | | | * common.mk (preludes): make prelude.c too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* template/prelude.c.tmplnobu2014-11-113-41/+36
| | | | | | | * template/prelude.c.tmpl: move from tool/compile_prelude.rb and expand by generic_erb.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* suppress warning: shadowing outer local variable - linenaruse2014-11-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove debug codenaruse2014-11-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/commands/contents_command.rb (files_in_default_gem):naruse2014-11-113-5/+17
| | | | | | | | | | | | | remove useless sort. show_files will sort the result and another branch, files_in_gem, doesn't sort. it should be removed for consistency. * test/rubygems/test_gem_commands_contents_command.rb (test_execute_default_gem): adjust the sort algorithm with Gem::Commands::ContentsCommand#show_files, which sort items as array of [prefix, basename] not strings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (sym_equal): use rb_obj_equal().ko12014-11-112-7/+10
| | | | | | | | | | | rb_obj_equal() is specially optimized in opt_eq_func()@vm_insnhelper.c. This fix is made from this discussion: https://www.omniref.com/ruby/2.1.4/symbols/Symbol/%3D%3D#line=8361. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/known_classes.rb: reverted regression changes ofhsbt2014-11-112-1/+5
| | | | | | rdoc known class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-11-11svn2014-11-101-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e