Skip to content

Instantly share code, notes, and snippets.

@rubychan
Created June 11, 2011 16:20
Show Gist options
  • Save rubychan/1020720 to your computer and use it in GitHub Desktop.
Save rubychan/1020720 to your computer and use it in GitHub Desktop.
diff --git a/vm/builtin/regexp.cpp b/vm/builtin/regexp.cpp
index 32031b8..d510f5d 100644
--- a/vm/builtin/regexp.cpp
+++ b/vm/builtin/regexp.cpp
@@ -264,7 +264,7 @@ namespace rubinius {
forced_encoding_ = true;
}
- thread::Mutex::LockGuard lg(state->shared.onig_lock());
+ // thread::Mutex::LockGuard lg(state->shared.onig_lock());
err = onig_new(&this->onig_data, pat, end, opts, enc, ONIG_SYNTAX_RUBY, &err_info);
@@ -381,7 +381,7 @@ namespace rubinius {
Exception::argument_error(state, "Not properly initialized Regexp");
}
- thread::Mutex::LockGuard lg(state->shared.onig_lock());
+ // thread::Mutex::LockGuard lg(state->shared.onig_lock());
maybe_recompile(state);
@@ -449,7 +449,7 @@ namespace rubinius {
Exception::argument_error(state, "Not properly initialized Regexp");
}
- thread::Mutex::LockGuard lg(state->shared.onig_lock());
+ // thread::Mutex::LockGuard lg(state->shared.onig_lock());
maybe_recompile(state);
region = onig_region_new();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment