What is the JVM’s Just-In-Time (JIT) compiler and what optimization does tiered compilation provide?

Java Professional Hard

Java Professional — Hard

What is the JVM’s Just-In-Time (JIT) compiler and what optimization does tiered compilation provide?

Key points

  • JIT compiles bytecode to native machine code at runtime
  • Tiered compilation uses a fast C1 compiler for quick startup and an optimizing C2 compiler for hot code
  • Tiered compilation provides performance optimization
  • JIT does not compile Java source to bytecode

Ready to go further?

Related questions