rb_io_buffer_t: pack structure

* include/ruby/io.h (rb_io_buffer_t): pack structure
  Reduces rb_io_t from 200 to 192 bytes, allowing rb_io_t to
  occupy one less cache line.
  [Feature #10050]

n.b. this leaves a 4-byte hole after the `cbuf' field which may
be used for future expansion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
rb_econv_t: reduce to 184 bytes from 200 on 64-bit

* transcode.c (rb_econv_t): reduce to 184 bytes from 200 on 64-bit

This allows rb_econv_t to fit inside of three cache lines on x86-64.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
rb_proc_t: reduce to 64 bytes from 72 on 64-bit

* vm_core.h (rb_proc_t): reduce to 64 bytes from 72 on 64-bit

This allows rb_proc_t to fit inside a single cache line on x86-64

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
vm_core.h: fix comment

* vm_core.h (rb_proc_t): fix comment.  safe_level is upto 3 now.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/ruby/test_module.rb: Bump up timeout in
  test_prepend_visibility_inherited for slow or heavily-loaded
  systems or slower-launching impls.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2014-07-21

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test/rake: fix tests under test-all

* test/rake/test_rake_application.rb (test_display_exception_details):
  `RbConfig::CONFIG["prefix"]` can be the root directory, under
  test-all.

* test/rake/test_rake_test_task.rb (test_run_code_rake_default_gem):
  `-I` may be inserted, under test-all.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
optparse.rb: getopts message improvement

* lib/optparse.rb (getopts): print default values and descriptions
  in the help message.  [fix GH-676]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ruby/io.h: fix rb_io_buffer_t

* include/ruby/io.h (rb_io_buffer_t): fix usage of PACKED_STRUCT().
  it must surround the whole declaration on VC.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Makefile.sub: no PACKED_STRUCT on old VC

* win32/Makefile.sub (PACKED_STRUCT): __pragma extension is
  available since VC9.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
rb_io_buffer_t: fix packing on gcc

* include/ruby/io.h (rb_io_buffer_t): fix packing on gcc
  r46892 caused packing to be a no-op on gcc (4.7.2-5, Debian)
  [Bug #10079][ruby-core:63912]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2014-07-22

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
string.c: fix wrong single-byte optimization

* string.c (rb_str_count): fix wrong single-byte optimization.
  7bit ascii can be a trailing byte in Shift_JIS.
  [ruby-dev:48442] [Bug #10078]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
string.c: raise at invalid byte sequence

* string.c (rb_str_count): raise at invalid byte sequence argument
  even if single-byte optimization is effective.
  [ruby-dev:48442] [Bug #10078]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
string.c: simplify

* string.c (rb_str_count): move code for the first argument
  outside loop for the rest, as it is executed only once.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
split assertions into algorithms

CentOS 7 seems finish MD5 support
http://chkbuild005.hsbt.org/chkbuild/ruby-trunk/log/20140722T140010Z.fail.html.gz

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2014-07-23

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/drb/extserv.rb: remove duplicate code with sample direcotry.
  contributed from @vipulnsward. [fix GH-679]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
fix a typo [ci skip]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
RHEL7 disables MD5

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e