* 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
fbuffer.h: expand arguments

* ext/json/fbuffer/fbuffer.h (fbuffer_to_s): expand arguments, for
  fix with rb_str_new macro.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* io.c: Add File.openat for thread safe file operations.
* io.c: Support platforms missing openat().
* configure.in: Check for openat().
* test/ruby/test_file_exhaustive.rb: Test passing a block.
* dir.c: Add Dir#fileno.  Refactor File#openat into Dir#open based on discussions in
    https://bugs.ruby-lang.org/issues/10181.
* io.c: Add Dir#open_file.
* configure.in: Check for dirfd().
* dir.c: Add Dir#fstatat