Skip to content

Instantly share code, notes, and snippets.

@thieso2
Created August 19, 2010 06:27
Show Gist options
  • Save thieso2/537216 to your computer and use it in GitHub Desktop.
Save thieso2/537216 to your computer and use it in GitHub Desktop.
diff --git a/ext/perftools.c b/ext/perftools.c
index e6f97f1..ace2e01 100644
--- a/ext/perftools.c
+++ b/ext/perftools.c
@@ -159,6 +159,8 @@ static VALUE Isend;
case VM_FRAME_MAGIC_CFUNC:
self = cfp->self;
#ifdef HAVE_METHOD_H
+ if (! cfp->me) break;
+
klass = cfp->me->klass;
method = cfp->me->called_id;
#else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment