1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
ko1 87d48d14a0 * vm_core.h, vm_trace.c: fix multi-threading bug for tracing.
Move `trace_arg' from rb_tp_t::trace_arg to rb_thread_t::trace_arg.
  `trace_arg' may changed by multiple threads.
  rb_thread_t::trace_arg can represent rb_thread_t::trace_running
  (null or non-null) and rb_thread_t::trace_running is removed.
  After that, `rb_tp_t' is not needed to check tracing or not
  (A running thread knows tracing or not). This is why I remove
  tp_attr_check_active() and make new function get_trace_arg().
  And this modification disable to work the following code:
  TracePoint.trace{|tp|
  Thread.new{p tp.event} # access `tp' from other threads.
  }
  I believe nobody mix threads at trace procedure.
  This is current limitation.
* cont.c (fiber_switch, rb_cont_call): use rb_thread_t::trace_arg
  instead of rb_thread_t::trace_running.
* test/ruby/test_settracefunc.rb: add a multi-threading test.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-21 09:33:44 +00:00
..
-ext-
base64
benchmark
bigdecimal
cgi
coverage
csv
date
dbm
digest
dl
drb
dtrace Use EnvUtil.rubybin instead of Gem.ruby 2012-12-17 12:48:12 +00:00
erb
etc
fiddle
fileutils
gdbm
io
irb
json
logger
matrix
minitest
misc
mkmf
monitor
net
nkf
objspace Use assert_separately to speed up slow tests 2012-12-14 01:38:12 +00:00
open-uri
openssl * ext/openssl/ossl.c: do not use FIPS_mode_set if not available. 2012-12-20 07:00:11 +00:00
optparse
ostruct
pathname
psych * ext/psych/lib/psych/visitors/yaml_tree.rb: quote strings that begin 2012-12-13 22:45:16 +00:00
rake * lib/rake/*: Updated to rake 0.9.6 2012-12-21 02:34:37 +00:00
rdoc * lib/rdoc/parser/ruby.rb: Ignore methods defined on constants to 2012-12-20 06:23:28 +00:00
readline
resolv
rexml
rinda
ripper
rss
ruby * vm_core.h, vm_trace.c: fix multi-threading bug for tracing. 2012-12-21 09:33:44 +00:00
rubygems * lib/rubygems/commands/query_command.rb: Refactored to improve 2012-12-19 07:19:10 +00:00
scanf
sdbm
socket
stringio
strscan
syslog
testunit
thread
uri
webrick
win32ole
xmlrpc
zlib
inlinetest.rb
profile_test_all.rb
runner.rb
test_abbrev.rb
test_cmath.rb
test_curses.rb
test_delegate.rb
test_find.rb
test_ipaddr.rb
test_mathn.rb
test_mutex_m.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_prime.rb
test_pstore.rb
test_pty.rb
test_securerandom.rb
test_set.rb
test_shellwords.rb
test_singleton.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb
test_tmpdir.rb
test_tracer.rb
test_tsort.rb
test_weakref.rb
with_different_ofs.rb