Skip to content

[GR-65445] AOT-compile javac and ship it with the jdk distribution #11271

Open
@vlsi

Description

@vlsi

Feature request

It would be great to make javac faster, and it looks like GraalVM could improve it.

The idea is that JDK image could include the compiled binaries for javac, so the users do not spend time on JIT-compiling javac.

Describe the solution you'd like.

Build native images for javac, and include them into jdk image.

It might be that -processor would require classloading, so javac should be modified to fallback to the current Java-based implementation.

I believe it could be completely transparent for the end-users.

Describe who do you think will benefit the most.

Java developers.

Describe alternatives you've considered.

One could consider building native-images on their own, however, the users would have to build images for every jdk distribution.

Express whether you'd like to help contributing this feature

I might be interested in contributing (code, benchmarks)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions