3

Do any of the Java JVMs implement specialization or partial evaluation type optimizations?

Does the final keyword get used for these optimizations?

1
  • I.e., do any JVMs freeze a parameter (or exploit a parameter that has been dynamically fixed with final) and generate specialized code? Commented Oct 30, 2012 at 22:52

1 Answer 1

2

During runtime yes. In fact all known JVM flavours do it. What does a just-in-time (JIT) compiler do?

On final keyword

Do java finals help the compiler create more efficient bytecode?

Hope I got the question right.

Sign up to request clarification or add additional context in comments.

1 Comment

Interesting links, but they neither one seems to directly answer the [primary] question. Of course "specialization or partial evaluation" is very vague ..

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.