Created
June 11, 2011 16:20
-
-
Save rubychan/1020720 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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