New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize static method invocation with rvalue target expression #62
Comments
Janino now checks if the target expression has side effects, and if not, completely eliminates the code. |
@aunkrig, thanks for fixing this issue! |
I suppose that means "problem resolved"!? |
Yes, that means "problem resolved", but perhaps in one of the previous releases. Thanks! |
Version 3.0.11 is out the door, and includes the fix for this issue. |
https://github.com/apache/drill/branches/1.14.0/exec/java-exec/src/main/java/org/apache/drill/exec/compile/bytecode/AloadPopRemover.java
correctly reports that Janino doesn't optimize this case:
The code generated by Janino retrieves the local variable value and immediately discards it.
The text was updated successfully, but these errors were encountered: