nobu
d22ac50ad4
tool/vpath.rb
...
* tool/generic_erb.rb, tool/id2token.rb: add --path-separator option
for mingw where make and built ruby live in different world.
* tool/vpath.rb: extract from tool/instruction.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 08:12:29 +00:00
nobu
2f80fddadc
test_io_wait.rb: Bug #7420
...
* test/io/wait/test_io_wait.rb (TestIOWait#fill_pipe):
Errno::EWOULDBLOCK may not be the same as Errno::EAGAIN. patch by
phasis68 (Heesob Park) at [ruby-core:49894]. [Bug #7420 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 08:11:10 +00:00
nobu
cf1d6730c1
remove trainling spaces
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 08:10:23 +00:00
drbrain
0a7d24cc5a
* lib/rubygems/test_case.rb: Determine path to certificates to avoid
...
build-dir problems.
* test/rubygems/test_gem_security_signer.rb: Use predetermined paths
to avoid build-dir problems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 08:04:04 +00:00
drbrain
d9422d8721
* lib/rubygems/test_case.rb: Disable loading of keys and certificates
...
outside rubygems or ruby tests as the files are not available (or
necessary).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 07:18:26 +00:00
ko1
e8af0046b7
* vm_backtrace.c (rb_debug_inspector_open): use RARRAY_LENINT() for
...
int variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 07:15:30 +00:00
ko1
585ac7f1a2
* include/ruby/debug.h: add rb_debug_inspector_* APIs.
...
* vm_backtrace.c: ditto.
* common.mk: add dpendency from vm_backtrace.o to
include/ruby/debug.h.
* proc.c (rb_binding_new_with_cfp): constify.
* vm.c (rb_vm_get_ruby_level_next_cfp): consitify.
* vm_core.h, vm_trace.c: move decls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 07:05:27 +00:00
naruse
07b10cd59f
* lib/rdoc/test_case.rb (RDoc::TestCase#verbose_capture_io):
...
defined for asserts of warnings.
* test/rdoc: use verbose_capture_io on asserts of warnings.
they failed when tests was run with RUBYOPT=-W0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 07:01:46 +00:00
usa
a985c5898c
* ext/psych/extconf.rb: added --enable-bundled-libyaml option. this
...
enforces using bundled libyaml.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 06:54:53 +00:00
drbrain
9694bb8cac
* lib/rubygems*: Updated to RubyGems 2.0
...
* test/rubygems*: ditto.
* common.mk (prelude): Updated for RubyGems 2.0 source rearrangement.
* tool/change_maker.rb: Allow invalid UTF-8 characters in source
files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 06:52:18 +00:00
ko1
3f606b7063
* include/ruby/debug.h: provide rb_tracearg_*() APIs,
...
instead of rb_tracepoint_attr_*().
These APIs are for debuggers/profilers.
They will be explained in another docs somtime.
* vm_trace.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 06:43:31 +00:00
naruse
d81b5a4ffb
* test/minitest/test_minitest_unit.rb: restore orig_verbose only
...
if it is set. This broke rdoc's tests.
http://u64.rubyci.org/~chkbuild/ruby-trunk/log/20121129T050102Z.diff.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 06:19:05 +00:00
ko1
479e396192
* vm_trace.c (rb_tracepoint_attr_method_id):
...
rename TracePoint#id to TracePoint#method_id.
* include/ruby/debug.h: ditto.
* test/ruby/test_settracefunc.rb: ditto,
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 05:57:35 +00:00
ko1
89c889d4e7
* vm_trace.c (rb_tracepoint_attr_defined_class):
...
rename TracePoint#klass to TracePoint#defined_class.
[ruby-core:50187] Re: [ruby-trunk - Feature #6895 ]
* include/ruby/debug.h: ditto.
* test/ruby/test_settracefunc.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 05:52:27 +00:00
ko1
502ab126ac
* gc.c (gc_stat): prepre Symbol objects at first time
...
to make it fast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 05:29:22 +00:00
ko1
c512d6acf9
* gc.c (gc_stat): GC.stat supports new information
...
* total_allocated_object: total allocated object number.
* total_freed_object: total freed object number.
Above two numbers are only accumulated and they will
overflow (return to 0). Please use them as a hint.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 05:05:19 +00:00
nobu
5bb12509a2
* test/dtrace/helper.rb (DTrace::TestCase): check dtrace availability
...
once.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 04:39:09 +00:00
nobu
0e515efda1
* properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 03:24:21 +00:00
ryan
81eb635f8c
Imported minitest 4.3.2 (r8026)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 03:23:11 +00:00
nobu
304885cdff
test/dl: no warnings
...
* test/dl/test_base.rb, test/dl/test_c_struct_entry.rb: deprecation
warnings make no sense here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 02:58:34 +00:00
nobu
ecaba0f21f
remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 02:58:31 +00:00
kosaki
c058d821f8
Revert r37956: thread.c (thread_start_func_2): small cleanups.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 02:50:11 +00:00
kosaki
989c529c89
* thread.c (thread_start_func_2): remove unused code. When
...
th->safe_level == 4, th->errinfo never be thrown. So, to
create new exception makes no sense.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 02:09:36 +00:00
ko1
f22f1fbb54
* vm_backtrace.c: same as a last patch.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 01:30:42 +00:00
ko1
d7ab6820b5
* vm_backtrace.c: use `long' for return values of `NUM2LONG()'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 01:26:38 +00:00
naruse
d1dfebc05a
Revert r37953: thread.c (thread_start_func_2): remove unused code. security
...
This sticks at bootstraptest/test_fork.rb:24 on FreeBSD and darwin.
http://fb.rubyci.org/~chkbuild/ruby-trunk/log/20121128T230302Z.log.html.gz
http://a.mrkn.jp/~mrkn/chkbuild/sl/ruby-trunk-m64-gcc42-o0/log/20121128T235908Z.log.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 01:11:47 +00:00
naruse
e2779a53ef
* thread.c (do_select): suppress warning (uninitialized value warning)
...
with UNINITIALIZED_VAR().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 00:52:51 +00:00
ko1
98ed344ae9
* eval.c (ruby_cleanup): delay THREAD_KILLED timing.
...
It should be located just before rb_thread_terminate_all().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 00:48:16 +00:00
ko1
3d47e7b285
* vm_backtrace.c (vm_backtrace_to_ary): support range argument
...
like Array#[].
[ruby-core:50092] [ruby-trunk - Feature #7434 ]
Test and document is not available. Please help us.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 00:12:49 +00:00
kosaki
b76b6b5c98
* thread.c (thread_start_func_2): small cleanups.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 21:55:26 +00:00
kosaki
5e606aee2f
* thread.c (thread_start_func_2): remove unused code.
...
this function never be used for main thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 21:55:14 +00:00
kosaki
fdda95ed8c
* thread.c (thread_start_func_2): remove unused code.
...
errinfo = th->errinfo; and errinfo = rb_errinfo(); are
the same.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 21:55:03 +00:00
kosaki
1d207fcff0
* thread.c (thread_start_func_2): remove unused code. security
...
level is checked before rb_eSecurityError raises.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 21:54:52 +00:00
ko1
2fa079b62a
* vm_backtrace.c (backtrace_to_str_ary2): rename to backtrace_to_str_ary.
...
* vm_backtrace.c (rb_backtrace_to_str_ary): use `backtrace_to_str_ary()'.
* vm_backtrace.c (backtrace_to_frame_ary): rename to
backtrace_to_location_ary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 20:30:01 +00:00
tenderlove
4bdd909518
* probes.d: Change function-entry probe to method-entry.
...
* insns.def: ditto
* probes_helper.h: ditto
* test/dtrace/test_function_entry.rb: ditto
* test/dtrace/test_singleton_function.rb: ditto
* vm.c: ditto
* vm_eval.c: ditto
* vm_insnhelper.c: ditto
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 20:20:50 +00:00
ko1
0fe2051c93
* vm_backtrace.c: rename Class name from
...
::RubyVM::Backtrace and ::RubyVM::Backtrace::Location
to ::Thread::Backtrace and ::Thread::Backtrace::Location.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 19:46:44 +00:00
nagachika
c5c1d8c236
* ChangeLog: fix a typo for r37928.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 18:09:34 +00:00
svn
c788b5f52b
* 2012-11-29
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 17:56:50 +00:00
nagachika
af6decf85e
* ChangeLog: fix a typo for r37938.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 17:56:39 +00:00
nagachika
7b6e26ae14
* ext/fiddle/closure.c: cosmetic fix for rdoc comment. (fix for r37917)
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 14:55:41 +00:00
tarui
5c32aff16e
revert some part of r37942. sorry.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 14:53:47 +00:00
ko1
36b21ada61
add ticket ref: [ruby-dev:46654] [ruby-trunk - Bug #7455 ]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 14:41:13 +00:00
ko1
09f9aa4385
* thread.c (rb_mutex_sleep): fix to allow spurious wakeup.
...
* NEWS: write about spurious wakeup.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 14:40:00 +00:00
tarui
e59c7307da
* NEWS (Thread) remove incompatible changes.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 14:37:47 +00:00
ko1
bf442ed2b3
* thread_win32.c: catch up latest change of BLOCKING_REGION.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 13:57:52 +00:00
ko1
ff2ca81bb3
* vm_insnhelper.c (vm_call_method): fix undefined behavior.
...
Should not access scope local variable from outer scope.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 13:56:29 +00:00
tarui
c6557c6fab
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@37939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 13:24:36 +00:00
ko1
9d0de48e66
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@37938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 13:01:25 +00:00
tarui
f5dc27aa77
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@37937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 12:34:15 +00:00
nobu
ac93d931fa
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: svn+ssh://ci.ruby-lang.org/ruby/trunk@37936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-28 12:23:20 +00:00