Skip to content

Instantly share code, notes, and snippets.

@ghazel
Created October 11, 2011 23:20
Show Gist options
  • Save ghazel/1279778 to your computer and use it in GitHub Desktop.
Save ghazel/1279778 to your computer and use it in GitHub Desktop.
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();
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