hg: mlvm/mlvm/hotspot: dynopt, trustfinal: update to match JDK7 pushes
Charles Oliver Nutter
headius at headius.com
Mon Feb 1 06:48:03 PST 2010
On Mon, Feb 1, 2010 at 2:41 AM, Christian Thalinger
<Christian.Thalinger at sun.com> wrote:
> This patch adds a command line option (-XX:+TrustFinalNonStaticFields)
> to turn on for user classes what we already do for system classes in
> {java,sun}.dyn: treat final non-static fields as constants.
>
> This enables to inline MethodHandle chains completely that e.g. have a
> GuardWithTest in between.
Ok, then it is the work I discussed with John and Tom Rodriguez some
time ago. I'll have to play with it; in JRuby's normal mode (non-indy)
there are a number of final accesses that could potentially go away
with this. I think Tom ran some numbers and didn't see improvement,
but he did not have any of JRuby's more experimental flags turned on.
- Charlie
More information about the mlvm-dev
mailing list