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 4a4a702e61 * vm_trace.c, vm_core.h: simplify tracing mechanism.
(1) add rb_hook_list_t data structure which includes
  hooks, events (flag) and `need_clean' flag.
  If the last flag is true, then clean the hooks list.
  In other words, deleted hooks are contained by `hooks'.
  Cleanup process should run before traversing the list.
  (2) Change check mechanism
  See EXEC_EVENT_HOOK() in vm_core.h.
  (3) Add `raw' hooks APIs
  Normal hooks are guarded from exception by rb_protect().
  However, this protection is overhead for too simple
  functions which never cause exceptions.  `raw' hooks
  are executed without protection and faster.
  Now, we only provide registration APIs.  All `raw'
  hooks are kicked under protection (same as normal hooks).
* include/ruby/ruby.h: remove internal data definition and
  macros.
* internal.h (ruby_suppress_tracing), vm_trace.c: rename
  ruby_suppress_tracing() to rb_suppress_tracing()
  and remove unused function parameter.
* parse.y: fix to use renamed rb_suppress_tracing().
* thread.c (thread_create_core): no need to set RUBY_VM_VM.
* vm.c (mark_event_hooks): move definition to vm_trace.c.
* vm.c (ruby_vm_event_flags): add a global variable.
  This global variable represents all of Threads and VM's
  event masks (T1#events | T2#events | ... | VM#events).
  You can check the possibility kick trace func or not
  with ruby_vm_event_flags.
  ruby_vm_event_flags is maintained by vm_trace.c.
* cont.c (fiber_switch, rb_cont_call): restore tracing status.
  [Feature #4347]
* test/ruby/test_continuation.rb: ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-08-16 11:41:24 +00:00
..
-ext- test_printf.rb: need to be infected 2012-08-16 02:52:09 +00:00
base64
benchmark * lib/benchmark.rb: Fix Benchmark.benchmark output with an empty 2012-07-18 03:56:58 +00:00
bigdecimal
cgi Suppress warnings. 2012-08-14 06:52:41 +00:00
coverage
csv * test/csv/test_features.rb: add require for Tempfile. 2012-07-07 14:14:54 +00:00
date uncommented some tests 2012-08-04 22:07:42 +00:00
dbm
digest ext/digest/digest.c (hexencode_str_new): return an ASCII string 2012-08-01 13:30:51 +00:00
dl * test/dl/test_func.rb (test_qsort1, test_qsort2): use TYPE_SIZE_T 2012-06-13 13:52:04 +00:00
drb Kernel#inspect: improve consistency and do not call #to_s. 2012-08-15 11:50:01 +00:00
erb * test/erb/test_erb.rb (test_html_escape): add assertions for the 2012-08-14 07:28:43 +00:00
etc * test/etc/test_etc.rb (TestEtc#test_getpwuid): `s' is never set to nil. 2012-08-06 02:20:47 +00:00
fiddle
fileutils * test/fileutils/test_fileutils.rb: add test for FileUtils#uptodate? 2012-07-16 08:15:08 +00:00
gdbm Suppress warnings. 2012-07-25 06:49:35 +00:00
io
irb
json
logger
matrix
minitest Imported minitest 3.2.0 (r7598). Reviewed by drbrain 2012-07-11 23:52:04 +00:00
misc
mkmf test_framework.rb: show mkmf.log on failure 2012-08-01 22:29:58 +00:00
monitor
net Refix r36678: switch with zlib and check content-encoding. 2012-08-10 10:53:18 +00:00
nkf
objspace
open-uri * lib/net/http.rb: Net::HTTP now automatically detects and uses 2012-07-20 01:56:21 +00:00
openssl * test/openssl/test_config.rb (OpenSSL#test_constants): skip this 2012-08-09 03:42:00 +00:00
optparse
ostruct
pathname
psych * lib/open-uri.rb: delete space. 2012-07-17 16:13:10 +00:00
rake
rdoc
readline Skip on non UTF-8 locale. 2012-06-19 06:30:55 +00:00
resolv
rexml Suppress warnings. 2012-07-23 21:37:39 +00:00
rinda
ripper * parse.y: added symbols and qsymbols productions for %i and %I 2012-07-24 18:10:35 +00:00
rss Suppress warnings. 2012-07-23 21:37:39 +00:00
ruby * vm_trace.c, vm_core.h: simplify tracing mechanism. 2012-08-16 11:41:24 +00:00
rubygems * lib/rubygems/platform.rb (Gem::Platform#initialize): Support pattern 2012-07-30 14:04:48 +00:00
scanf
sdbm
socket Show nd6 options and whether the packet is reached to the server or not. 2012-07-24 03:09:32 +00:00
stringio
strscan
syck Use Syck module after it is defined. 2012-06-29 13:12:36 +00:00
syslog * syslog/test_syslog_logger.rb: miss. 2012-08-06 02:11:58 +00:00
testunit * test/testunit/test_redefinition.rb: broken class/method names. 2012-07-25 01:01:59 +00:00
thread
uri * test/uri/test_generic.rb (URI#test_find_proxy): add tests with empty *_proxy env variables. 2012-07-22 16:55:55 +00:00
webrick
win32ole * test/win32ole/test_win32ole_variant.rb: setting WIN32OLE.locale 2012-08-06 10:21:12 +00:00
xmlrpc
zlib * ext/zlib/zlib.c: Added streaming support to inflate processing. 2012-07-10 18:28:40 +00:00
inlinetest.rb
profile_test_all.rb
runner.rb runner.rb: no installed gems 2012-08-03 08:21:55 +00:00
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 Kernel#inspect: improve consistency and do not call #to_s. 2012-08-15 11:50:01 +00:00
test_prettyprint.rb
test_prime.rb
test_pstore.rb
test_pty.rb
test_securerandom.rb Suppress warnings. 2012-07-25 06:49:35 +00:00
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