Created
October 11, 2011 23:20
-
-
Save ghazel/1279778 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/vm/builtin/thread.cpp b/vm/builtin/thread.cpp | |
index 314ffda..d772123 100644 | |
--- a/vm/builtin/thread.cpp | |
+++ b/vm/builtin/thread.cpp | |
@@ -256,6 +256,7 @@ namespace rubinius { | |
VM* vm = vm_; | |
if(!vm) return nil<Array>(); | |
+ StopTheWorld stop(vm); | |
CallFrame* cf = vm->saved_call_frame()->top_ruby_frame(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
t = Thread.start do | |
sleep 1 | |
end | |
p t.backtrace | |
sleep 2 | |
p t.backtrace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment