Skip to content

Instantly share code, notes, and snippets.

@FROGGS

FROGGS/print.md Secret

Last active December 30, 2015 03:09
Show Gist options
  • Save FROGGS/2e518058dcd3661d5c4e to your computer and use it in GitHub Desktop.
Save FROGGS/2e518058dcd3661d5c4e to your computer and use it in GitHub Desktop.
diff --git a/src/core/frame.c b/src/core/frame.c
index dd2b7c3..39213e6 100644
--- a/src/core/frame.c
+++ b/src/core/frame.c
@@ -363,6 +363,9 @@ MVMObject * MVM_frame_takeclosure(MVMThreadContext *tc, MVMObject *code) {
     MVM_ASSIGN_REF(tc, closure, closure->body.sf, ((MVMCode *)code)->body.sf);
     closure->body.outer = MVM_frame_inc_ref(tc, tc->cur_frame);
     MVM_ASSIGN_REF(tc, closure, closure->body.code_object, ((MVMCode *)code)->body.code_object);
+    
+    if (code == 0x7ffff69fc650 || closure == 0x7ffff69fc650 || closure->body.sf == 0x7ffff69fc650)
+    printf("%p %p %p\n", code, closure, closure->body.sf);
 
     return (MVMObject *)closure;
 }
0x74d9c0 0x7ffff69fc650 0x6b6770, 0
0x9862c0 0x7ffff69fc650 0x966980, 42
0x74ee80 0x7ffff69fc650 0x6f4250, 108
0x7af4a0 0x7ffff69fc650 0x73c890, 146
0x7af4a0 0x7ffff69fc650 0x73c890, 150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment