aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-25 05:14:33 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-25 05:14:33 +0000
commitec4a7ccf86c6be8d54934dd70c8e69fed328a612 (patch)
tree9fc1895bb8780687c3a2a369d7492bd08ced53ac
parent5bda3debcf2493308afd8d5c7d5ee306d5980828 (diff)
downloadruby-ec4a7ccf86c6be8d54934dd70c8e69fed328a612.tar.gz
* ext/probeprofiler/probeprofiler.c: fix function name and
return value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/probeprofiler/probeprofiler.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 3fa67e9457..ddfc44c03d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Apr 25 14:10:47 2007 Koichi Sasada <ko1@atdot.net>
+
+ * ext/probeprofiler/probeprofiler.c: fix function name and
+ return value.
+
Wed Apr 25 12:42:40 2007 Koichi Sasada <ko1@atdot.net>
* yarvcore.h: remove rb_control_frame_t#callee_id.
diff --git a/ext/probeprofiler/probeprofiler.c b/ext/probeprofiler/probeprofiler.c
index 9d2b1a6c09..9ffb203673 100644
--- a/ext/probeprofiler/probeprofiler.c
+++ b/ext/probeprofiler/probeprofiler.c
@@ -18,14 +18,14 @@ pprof_hook(rb_event_flag_t flag, VALUE data,
VALUE dmyid, VALUE dmyklass)
{
rb_thread_t *th = GET_THREAD();
- VALUE sig = rb_thread_current_sig(th);
+ VALUE sig = rb_thread_current_status(th);
hash_inc(data, sig);
}
static VALUE
pprof_data(VALUE mod)
{
- rb_const_get_at(mod, rb_intern("#pprof_data"));
+ return rb_const_get_at(mod, rb_intern("#pprof_data"));
}
static VALUE