Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ensure reinitialization for auxiliary threads lock

  • Loading branch information...
commit bdaa0bc68c065e4440dbbb099da39b3f71a6dc06 1 parent 1f42a9d
Dirkjan Bussink dbussink authored
4 vm/auxiliary_threads.cpp
View
@@ -86,4 +86,8 @@ namespace rubinius {
fork_in_progress_ = false;
}
+
+ void AuxiliaryThreads::init() {
+ mutex_.init();
+ }
}
1  vm/auxiliary_threads.hpp
View
@@ -37,6 +37,7 @@ namespace rubinius {
void register_thread(AuxiliaryThread* thread);
void unregister_thread(AuxiliaryThread* thread);
+ void init();
void shutdown(STATE);
void before_exec(STATE);
void after_exec(STATE);
2  vm/shared_state.cpp
View
@@ -264,6 +264,8 @@ namespace rubinius {
onig_lock_.init();
ruby_critical_lock_.init();
capi_lock_.init();
+ capi_ds_lock_.init();
+ auxiliary_threads_->init();
world_->reinit();
}
Please sign in to comment.
Something went wrong with that request. Please try again.