JDK-6933324 : Always inline methods, which have only 1 call site
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 7
  • Priority: P5
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2010-03-09
  • Updated: 2012-10-04
  • Resolved: 2012-10-04
Description
A DESCRIPTION OF THE REQUEST :
Additionally consider default inlining of very small methods with few call sites.

JUSTIFICATION :
- Reduces memory usage
- Increases performance
- Reduces register pressur in many cases

Comments
Always inlining methods which have only 1 call site might not always be faster (code size, register allocation). It might be true for very small methods but for these we have MaxTrivialSize.
04-10-2012