public Accessor optimizeCollection(ParserContext pCtx, Object rootObject, Class type, char[] property, int start, int offset, Object ctx, Object thisRef, VariableResolverFactory factory) { readLock.lock(); try{ return classLoader.registerDynamicAccessor(new DynamicCollectionAccessor(pCtx, rootObject, type, property, start, offset, 2, firstStage.optimizeCollection(pCtx, rootObject, type, property, start, offset, ctx, thisRef, factory))); } finally{ readLock.unlock(); } }
public Object getValue(Object ctx, Object elCtx, VariableResolverFactory variableFactory) { if (!opt) { if (++runcount > DynamicOptimizer.tenuringThreshold) { if ((currentTimeMillis() - stamp) < DynamicOptimizer.timeSpan) { opt = true; return optimize(pCtx, ctx, elCtx, variableFactory); } else { runcount = 0; stamp = currentTimeMillis(); } } } return _accessor.getValue(ctx, elCtx, variableFactory); }
public Accessor optimizeCollection(ParserContext pCtx, Object rootObject, Class type, char[] property, int start, int offset, Object ctx, Object thisRef, VariableResolverFactory factory) { readLock.lock(); try{ return classLoader.registerDynamicAccessor(new DynamicCollectionAccessor(pCtx, rootObject, type, property, start, offset, 2, firstStage.optimizeCollection(pCtx, rootObject, type, property, start, offset, ctx, thisRef, factory))); } finally{ readLock.unlock(); } }
public Object getValue(Object ctx, Object elCtx, VariableResolverFactory variableFactory) { if (!opt) { if (++runcount > DynamicOptimizer.tenuringThreshold) { if ((currentTimeMillis() - stamp) < DynamicOptimizer.timeSpan) { opt = true; return optimize(pCtx, ctx, elCtx, variableFactory); } else { runcount = 0; stamp = currentTimeMillis(); } } } return _accessor.getValue(ctx, elCtx, variableFactory); }
public Accessor optimizeCollection(ParserContext pCtx, Object rootObject, Class type, char[] property, Object ctx, Object thisRef, VariableResolverFactory factory) { return classLoader.registerDynamicAccessor(new DynamicCollectionAccessor(rootObject, type, property, 2, firstStage.optimizeCollection(pCtx, rootObject, type, property, ctx, thisRef, factory))); }
public Object getValue(Object ctx, Object elCtx, VariableResolverFactory variableFactory) { if (!opt) { if (++runcount > DynamicOptimizer.tenuringThreshold) { if ((currentTimeMillis() - stamp) < DynamicOptimizer.timeSpan) { opt = true; return optimize(AbstractParser.getCurrentThreadParserContext(), ctx, elCtx, variableFactory); } else { runcount = 0; stamp = currentTimeMillis(); } } } return _accessor.getValue(ctx, elCtx, variableFactory); }