Skip to content

Commit

Permalink
Modification of search logic for jit excludes; use "ModuleName" or "M…
Browse files Browse the repository at this point in the history
…odule#method" or "method" to exclude. JRUBY-2679.

git-svn-id: http://svn.codehaus.org/jruby/trunk/jruby@7200 961051c9-f516-0410-bf72-c9f7e237a7b7
  • Loading branch information
headius committed Jul 17, 2008
1 parent 6036154 commit 820d598
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/org/jruby/compiler/JITCompiler.java
Expand Up @@ -88,9 +88,10 @@ public void runJIT(final DefaultMethod method, final ThreadContext context, fina

// Check if the method has been explicitly excluded
String moduleName = method.getImplementationClass().getName();
moduleName = moduleName.replaceAll("#<.*>", "-");
if (instanceConfig.getExcludedMethods().contains(moduleName) ||
instanceConfig.getExcludedMethods().contains(moduleName+"::"+name)) {
if (instanceConfig.getExcludedMethods().size() > 0 &&
(instanceConfig.getExcludedMethods().contains(moduleName) ||
instanceConfig.getExcludedMethods().contains(moduleName+"#"+name) ||
instanceConfig.getExcludedMethods().contains(name))) {
method.setCallCount(-1);
return;
}
Expand Down

0 comments on commit 820d598

Please sign in to comment.