Skip to content
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

Use StringConcatFactory for string concatenation on JDK 9+ #9556

Merged
merged 1 commit into from
Jun 24, 2021

Commits on Jun 24, 2021

  1. Use StringConcatFactory for string concatenation on JDK 9+

    JEP 280, released in JDK 9, proposes a new way to compile string
    concatenation using `invokedynamic` and `StringConcatFactory`.
    This new approach generates less bytecode, doesn't have to incur
    the overhead of `StringBuilder` allocations, and allows users to
    pick swap the concatenation technique at runtime.
    
    This changes the codegen when the target is at least Java 9 to
    leverage `invokedynamic` and `StringConcatFactory`. On Java 8,
    the old `StringBuilder` approach is still used.
    harpocrates authored and lrytz committed Jun 24, 2021
    Configuration menu
    Copy the full SHA
    b7dc31f View commit details
    Browse the repository at this point in the history