sprintf.c: integer overflow

* sprintf.c (rb_str_format): fix a possible integer overflow and
  suppress implicit conversion warnings.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
regparse.c: remove unused variable

* regparse.c (add_ctype_to_cc): suppress a warning by removing
  unused variable.

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

* regenc.h (PosixBracketEntryType): shrink by embedding `name` and
  reordering.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
bm_app_aobench.rb: update links  [ci skip]

* benchmark/bm_app_aobench.rb: update outdated links to the
  original program.  [ruby-dev:48550] [Feature #10247]

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

* vm_method.c (GLOBAL_METHOD_CACHE): make a single expression.

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/rbinstall.rb: fixed invalid options with latest rubygems.
  https://github.com/rubygems/rubygems/issues/1013

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/fiddle/test_import.rb (Fiddle::TestImport#test_sizeof):
  added test for long long [fix GH-716]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ext/zlib/zlib.c (zlib_mem_alloc): check overflow

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/uri/rfc3986_parser.rb: specify a regexp for :OPAQUE; generic.rb
  assumes it is present, and will refuse all values otherwise.
  by Matthew Draper <matthew@trebex.net>
  https://github.com/ruby/ruby/pull/718 fix GH-718

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Re-apply r43023 which is accidentally reverted by r47598

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
socket (rsock_connect): fix and refactor for blocking

* ext/socket/init.c (rsock_connect): refactor for blocking
  (wait_connectable): clear error before wait
  [Bug #9356]

We no longer use non-blocking sockets to emulate blocking behavior,
so eliminate error-prone and confusing platform-dependent code.
According to POSIX, connect() only needs to be called once in the
face of EINTR, so do not loop on it.

Before waiting on connect, drop any pending errors, since
rb_wait_for_single_fd may not clear the existing error
properly.

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ext/zlib/zlib.c (struct gzfile): pack (288 => 272 bytes) on 64-bit

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test/-ext-/string/test_modify_expand.rb: increase limit for {je,tc}malloc

In this test, jemalloc and tcmalloc are both more hesitant to
release memory to the kernel than the stock glibc allocator.

Tested on jemalloc 3.6.0 (self-built) and libtcmalloc-minimal 2.0-2
(Debian package) on x86_64-linux

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
vm_method.c: configurable global method cache size

* vm_method.c (Init_Method): make global method cache size
  configurable by environment variable
  "RUBY_GLOBAL_METHOD_CACHE_SIZE"  [Fix GH-719]

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/rubygems/test_gem_specification.rb: '/' is not always the root.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/rubygems/test_gem_commands_setup_command.rb: @ui uses StringIO
  as its streams, and Encoding.default_external does not effect to
  stringIOs already exist.  so, we need to set external_encoding of
  @ui.outs directly.  this problem (test failure) does not appear in
  the environments default_external is us-ascii or utf-8.


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

* string.c (rb_utf8_str_new, rb_utf8_str_new_cstr): make UTF-8
  string.

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