Skip to content

Commit

Permalink
Fixed race when iterating Thread list.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Jan 1, 2016
1 parent d43ae9c commit b3a25c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vm/thread_nexus.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit b3a25c5

Please sign in to comment.