Request for review (S): 7042122: JSR 292: adjust various inline thresholds for JSR 292 API methods and method handle adapters (original) (raw)
Christian Thalinger christian.thalinger at oracle.com
Thu May 5 10:40:38 PDT 2011
- Previous message: Request for review (S): 7042122: JSR 292: adjust various inline thresholds for JSR 292 API methods and method handle adapters
- Next message: Request for review (S): 7042122: JSR 292: adjust various inline thresholds for JSR 292 API methods and method handle adapters
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On May 5, 2011, at 7:22 PM, Vladimir Kozlov wrote:
Christian,
your comments does not explain why you need such particular sizes. Where "*3" and "/2" come from?
Right, I forgot to mention that. These are empirically evaluated numbers and work good with JRuby which uses a couple of very common patterns. I assume we have to tweak the numbers again in the future when we have more users of the code.
Also I think you should use one 'if' instead of 2 cmoves:
+ int defaultmaxinlinesize = C->maxinlinesize(); + int inlinesmallcodesize = InlineSmallCode / 4; + if (calleeholder->isinpackage("java/lang/invoke") || + calleeholder->isinpackage("sun/invoke") || + callermethod->ismethodhandleadapter()) { + // adjust default thresholds + defaultmaxinlinesize *= 3; + inlinesmallcodesize *= 2; + } + int maxinlinesize = defaultmaxinlinesize;
I will change that.
-- Christian
Vladimir Christian Thalinger wrote: http://cr.openjdk.java.net/~twisti/7042122/ 7042122: JSR 292: adjust various inline thresholds for JSR 292 API methods and method handle adapters Reviewed-by: The default inline thresholds for various JSR 292 API methods are too small avoiding the possibility to inline through a method handle chain. Currently it is required to tweak some command line options to get decent performance. The tweaking should go away. The change also renames two methods to follow our conventions and changed the output of discounting method handle adapters from inlining level. src/share/vm/opto/bytecodeInfo.cpp src/share/vm/opto/parse.hpp
- Previous message: Request for review (S): 7042122: JSR 292: adjust various inline thresholds for JSR 292 API methods and method handle adapters
- Next message: Request for review (S): 7042122: JSR 292: adjust various inline thresholds for JSR 292 API methods and method handle adapters
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the hotspot-compiler-dev mailing list