mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
4a4a702e61
(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 |
||
---|---|---|
.. | ||
-ext- | ||
base64 | ||
benchmark | ||
bigdecimal | ||
cgi | ||
coverage | ||
csv | ||
date | ||
dbm | ||
digest | ||
dl | ||
drb | ||
erb | ||
etc | ||
fiddle | ||
fileutils | ||
gdbm | ||
io | ||
irb | ||
json | ||
logger | ||
matrix | ||
minitest | ||
misc | ||
mkmf | ||
monitor | ||
net | ||
nkf | ||
objspace | ||
open-uri | ||
openssl | ||
optparse | ||
ostruct | ||
pathname | ||
psych | ||
rake | ||
rdoc | ||
readline | ||
resolv | ||
rexml | ||
rinda | ||
ripper | ||
rss | ||
ruby | ||
rubygems | ||
scanf | ||
sdbm | ||
socket | ||
stringio | ||
strscan | ||
syck | ||
syslog | ||
testunit | ||
thread | ||
uri | ||
webrick | ||
win32ole | ||
xmlrpc | ||
zlib | ||
inlinetest.rb | ||
profile_test_all.rb | ||
runner.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 |