if (classCache.isFull()) { abandonCount.incrementAndGet(); method.setCallCount(-1); return null; }
if (sourceClass == null) { // class could not be found nor generated; give up on JIT and bail out failCount.incrementAndGet(); method.setCallCount(-1); return null; }
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/compiler/JITCompiler.java File path: /jruby-1.4.0/src/org/jruby/compiler/JITCompiler.java
Method name: DynamicMethod jitThresholdReached(DefaultMethod, RubyInstanceConfig, ThreadContext, String) Method name: DynamicMethod jitThresholdReached(DefaultMethod, RubyInstanceConfig, ThreadContext, String)
Number of AST nodes: 4 Number of AST nodes: 4
1
if (classCache.isFull()) {
1
if (sourceClass == null) {
2
                abandon
2
                // class could not be found nor generated; give up on JIT and bail out
3
Count.incrementAndGet();
3
                failCount.incrementAndGet();
4
                method.setCallCount(-1);
4
                method.setCallCount(-1);
5
                return null;
5
                return null;
6
            }
6
            }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same method
Number of node comparisons1