Permalink
Browse files

Added a C-API lock for Nokogiri.

This makes whatever the issue is in

sparklemotion/nokogiri#1047
#2844

to not manifest during more than 1 hour of 100 threads running in
the repro script in the Nokogiri ticket.

If a bug never appears, does it exist?
  • Loading branch information...
1 parent 71bf488 commit 5f2e61b1f072e884dbf821927a5b6e2b80fd35ce @brixen brixen committed Feb 22, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 vm/shared_state.cpp
View
@@ -396,5 +396,6 @@ namespace rubinius {
#define CAPI_BLACK_LIST(name) capi_black_list_.insert(std::string("Init_" # name))
void SharedState::initialize_capi_black_list() {
CAPI_BLACK_LIST(nkf);
+ CAPI_BLACK_LIST(nokogiri);
}
}

0 comments on commit 5f2e61b

Please sign in to comment.