dir.c: check boundary

* dir.c (glob_make_pattern): check boundary before accessing.

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c (gc_before_sweep): heap_pages_swept_slots should contains
  heap_pages_increment.
  For example, GC by exceeding malloc_limit can remain
  heap_pages_increment.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* gc.c (gc_marks, gc_marks_body): increase the counter of young objects
  at the major GC because AGE2Promotion changes all old objects into
  young objects at major GC.



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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* tool/release.sh: need -f option because this overwrite the previous links if they exist.


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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
dir.c: match plain names as-is

* dir.c (glob_pattern_type): separate names with alphabet but no
  magical from plain.
* dir.c (glob_helper): match plain names as-is to treat super-root
  same as the root.  [ruby-core:61552] [Bug #9648]

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

* dir.c (glob_helper): reduce matching at non-mgaical path on
  Windows.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
dir.c: fix conditions for ALPHA

* dir.c (has_magic): return ALPHA at alphabetical name regardless
  FNM_CASEFOLD flag.
* dir.c (glob_helper): fix conditions for ALPHA.
  [ruby-core:61552] [Bug #9648]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
dir.c: set PLAIN for non-magical

* dir.c (glob_make_pattern): set PLAIN for non-magical path to
  skip parts which not need to glob.
  [ruby-core:61552] [Bug #9648]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
dir.c: try match PLAIN

* dir.c (glob_helper): try match PLAIN as well as ALPHA, which are
  separated by previous commits.  [ruby-core:61552] [Bug #9648]

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