Permalink
Browse files

Modification of search logic for jit excludes; use "ModuleName" or "M…

…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...
1 parent 6036154 commit 820d5988375d12aa97ac6c2d8b259aec7b60b62f @headius headius committed Jul 17, 2008
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/org/jruby/compiler/JITCompiler.java
@@ -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;
}

0 comments on commit 820d598

Please sign in to comment.