Skip to content
Permalink
Browse files
Fixed race when iterating Thread list.
  • Loading branch information
brixen committed Jan 1, 2016
1 parent d43ae9c commit b3a25c52264ab3fffb3c992f1d1739a939ce31f5
Showing with 2 additions and 0 deletions.
  1. +2 −0 vm/thread_nexus.cpp
@@ -132,6 +132,8 @@ namespace rubinius {
#define RBX_MAX_STOP_ITERATIONS 10000

bool ThreadNexus::locking(VM* vm) {
utilities::thread::SpinLock::LockGuard guard(threads_lock_);

timer::StopWatch<timer::nanoseconds> timer(
vm->metrics().lock.stop_the_world_ns);

0 comments on commit b3a25c5

Please sign in to comment.