unit.rb: remove unnecessary includes

* lib/test/unit.rb (Test::Unit::{GlobOption,LoadPathOption}): remove
  unnecessary includes.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mkmf.rb: each_compile_rules

* lib/mkmf.rb (MakeMakefile#each_compile_rules): splat $(*VPATH*) for
  each VPATH elements.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37933 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
extconf.rb: VPATH

* ext/psych/extconf.rb: compile sources in the source directory
  without copying by using VPATH.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
extconf.rb: mingw32

* ext/psych/extconf.rb: mingw32 also needs macros for win32, not
  only mswin32.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
emitter.c: constify

* ext/psych/yaml/emitter.c (yaml_emitter_write_indicator): constify.
* ext/psych/yaml/emitter.c (yaml_emitter_write_block_scalar_hints):
  ditto.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
	* thread.c (thread_join_sleep): check spurious wakeup by itself for
	corresponding status change in trap context.
	* vm_core.h (struct rb_thread_struct): add rb_thread_list_t and use as join_list for
	reentry by trap context.
	* thread.c (thread_start_func_2): ditto.
	* thread.c (remove_from_join_list): ditto.
	* thread.c (rb_thread_atfork): ditto.
	* thread.c (thread_join): ditto. & remove trap handler check.
	* thread.c (sleep_forever): add argument : spurious_check.
	* thread.c (sleep_timeval): ditto.
	* thread.c (rb_thread_sleep_forever): set spurious_check.
	* thread.c (rb_thread_sleep_deadly): ditto.
	* thread.c (sleep_for_polling): ditto.
	* thread.c (rb_thread_wait_for): ditto.
	* thread.c (sleep_wait_for_interrupt): bypass spurious_check.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* include/ruby/thread.h (rb_thread_call_without_gvl2): change
  meaning of function.
  This function is called with same parameters of
  `rb_thread_call_without_gvl()'.
  However, if interrupts are detected, when return immediately.
* thread.c: implement `rb_thread_call_without_gvl2()'.



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
	* test/ruby/test_thread.rb (test_thread_status_in_trap): change test for
	  thread status in trap. now can accept Thread#join and Thread#value in trap.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_insnhelper.c (vm_call_method): fix undefined behavior.
  Should not access scope local variable from outer scope.



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* thread_win32.c: catch up latest change of BLOCKING_REGION.



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
	* NEWS (Thread) remove incompatible changes.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* thread.c (rb_mutex_sleep): fix to allow spurious wakeup.
* NEWS: write about spurious wakeup.



git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
add ticket ref: [ruby-dev:46654] [ruby-trunk - Bug #7455]

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
revert some part of r37942. sorry.

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ext/fiddle/closure.c: cosmetic fix for rdoc comment. (fix for r37917)

git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@37946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e