ThoughtsInWords

Java Evolution (JDK 1.0 to Java 27): Version Milestones, LTS Support, and Modern JVM Architecture

Date: November 24, 2026 Last Updated: November 24, 2026 Review: Expert & Architecture Review Report

Scope & Licensing Note: This article strictly covers pure open-source systems. Premium, proprietary/vendor-locked, and community-edition (open-core) systems are currently not included.

Summary

Over three decades—from JDK 1.0 (1996) to Java 27 (September 2026)—Java has evolved from a portable object-oriented runtime (“Write Once, Run Anywhere”) into a high-density, cloud-native, post-quantum-ready platform governed by the open-source OpenJDK project (GPL-2.0-only WITH Classpath-exception-2.0). Understanding how the JVM reached this point is essential for engineering teams deciding today between multi-year Long-Term Support (LTS) baselines and the rapid 6-month feature track. Since shifting to a 6-month feature cadence in Java 9 and a 2-year LTS cycle starting with Java 17, OpenJDK has systematically retired long-standing operational bottlenecks—delivering Virtual Threads, algebraic data-oriented programming (closed type hierarchies checked exhaustively at compile time), 64-bit compact object headers, GC-agnostic Ahead-of-Time (AOT) object caching, native HTTP/3 over QUIC, post-quantum hybrid TLS 1.3, and JFR in-process data redaction.

Key Points


Complete Java Version, Support & Milestone Matrix (JDK 1.0 – Java 27)

The matrix below highlights watershed and LTS milestones—intermediate 6-month non-LTS releases (such as Java 12–16 and Java 18–20) rolled their finalized capabilities forward into their subsequent LTS baseline, while Java 22–24 are shown explicitly because they delivered pivotal runtime transitions ahead of Java 25 LTS.

Version Release Date Type Open-Source Community Support Horizon (OpenJDK Updates / Eclipse Temurin) Key Milestones & Features
JDK 1.0 – 1.4 1996 – 2002 Legacy Oct 2008 (1.4.2) JVM bytecode execution (“Write Once, Run Anywhere”), Collections Framework, Swing, HotSpot JIT compiler, NIO, and regex.
Java 5 Sep 2004 Legacy Oct 2009 Type Safety & Metadata: Generics, annotations, autoboxing, enums, enhanced for loops, and java.util.concurrent.
Java 6 Dec 2006 Legacy Feb 2013 Runtime Maturity & Tooling: Compiler API (javax.tools), Scripting API (javax.script), JDBC 4.0 driver discovery, pluggable annotation processing, and HotSpot synchronization optimizations.
Java 7 Jul 2011 Legacy Apr 2015 (Public EOL) Developer Ergonomics: try-with-resources, diamond operator (<>), NIO.2 file APIs, and invokedynamic bytecode (paving the way for lambdas).
Java 8 Mar 2014 LTS At least Dec 2030 (jdk8u / Eclipse Temurin) Functional Paradigm: Lambda expressions, Stream API, Optional, java.time (Date/Time API), and replacement of PermGen with Metaspace.
Java 9 – 10 Sep 2017 – Mar 2018 Feature Mar 2018 (9) / Sep 2018 (10) Modularity & Inference: Java Platform Module System (Project Jigsaw), JShell, G1 as default server GC, and local variable type inference (var).
Java 11 Sep 2018 LTS At least Oct 2027 (jdk11u / Eclipse Temurin) Cloud-Native Baseline: Standardized HTTP/2 Client API, single-file source execution (java Hello.java), ZGC (experimental), and removal of Java EE/CORBA modules.
Java 17 Sep 2021 LTS At least Oct 2027 (jdk17u / Eclipse Temurin) Data-Oriented Programming: Sealed classes, finalized record types (from 16), text blocks (from 15), switch expressions (from 14), and strong encapsulation of JDK internals.
Java 21 Sep 2023 LTS At least Dec 2029 (jdk21u / Eclipse Temurin) High-Throughput Concurrency: Virtual Threads (JEP 444), Record Patterns, Pattern Matching for switch, Sequenced Collections, and opt-in Generational ZGC (JEP 439).
Java 22 – 24 Mar 2024 – Mar 2025 Feature Sep 2024 (22) / Mar 2025 (23) / Sep 2025 (24) Runtime Modernization Bridge: Foreign Function & Memory (FFM) API (JEP 454, 22), Generational ZGC default (JEP 474, 23) then sole mode (JEP 490, 24), Virtual Thread unpinning for synchronized (JEP 491, 24), Class-File API (JEP 484) & Stream Gatherers (JEP 485), ML-KEM/ML-DSA primitives (JEPs 496/497), and AOT Class Loading & Linking (JEP 483).
Java 25 Sep 2025 LTS At least Sep 2031 (jdk25u / Eclipse Temurin) Boilerplate Reduction & Runtime Efficiency: Scoped Values (JEP 506), Flexible Constructor Bodies (JEP 513), Compact Source Files & java.lang.IO (JEP 512), Module Imports (JEP 511), KDF API (JEP 510), Project Leyden AOT ergonomics/profiling (JEPs 514/515), JFR cooperative sampling & method tracing (JEPs 518/520), Generational Shenandoah (JEP 521), and opt-in Compact Object Headers (JEP 519).
Java 26 – 27 Mar – Sep 2026 Feature Sep 2026 (26) / Mar 2027 (27) Modern Security & Defaults: HTTP/3 Client (JEP 517), AOT Object Caching with any GC (JEP 516), final-field mutation warnings (JEP 500), G1 throughput boost (JEP 522), Applet API removal (JEP 504) in 26; PQ Hybrid TLS 1.3 (JEP 527), default Compact Object Headers (JEP 534), unconditional G1 GC default (JEP 523), and JFR In-Process Data Redaction (JEP 536) in 27.

Support Cadence Note: Non-LTS feature releases receive public updates for exactly 6 months until superseded by the next feature release. The LTS horizons above reflect the pure open-source Eclipse Adoptium (Eclipse Temurin) End-of-Availability schedule backed by upstream OpenJDK Updates projects (jdk8u, jdk11u, jdk17u, jdk21u, jdk25u), published at adoptium.net/support/. Eclipse Adoptium commits to maintaining each LTS release for at least 4+ years (typically extended further while upstream OpenJDK Updates remain active), shipping quarterly Critical Patch Updates (CPUs) on the third Tuesday of January, April, July, and October.

Warning — Community vs. Commercial Support Blast Radius: Never plan pure open-source OpenJDK upgrades around paid commercial extended-support calendars published by proprietary JDK vendors. Commercial extended windows frequently outlast upstream community maintenance by several years; teams that mistakenly anchor open-source container base images to commercial EOL dates risk running silently unpatched JVMs—missing critical TLS, deserialization, and memory-safety CVE fixes—long after community updates stop.


Five Architectural Eras of the JVM

Viewing Java’s timeline purely as a list of syntax features misses its deeper trajectory: every era solved a specific structural bottleneck in how software is compiled, scheduled, isolated, and operated in production.

flowchart TD
    E1["Era 1: JDK 1.0–1.4 (1996–2002) — Portable Bytecode & HotSpot JIT"]
    E2["Era 2: Java 5–8 (2004–2014) — Type Safety, invokedynamic & Functional Streams"]
    E3["Era 3: Java 9–17 (2017–2021) — Modularity, Cloud Baseline & Data-Oriented Types"]
    E4["Era 4: Java 21–25 (2023–2025) — Virtual Threads, FFM, Scoped Values & Low Boilerplate"]
    E5["Era 5: Java 26–27 (2026+) — HTTP/3, Any-GC AOT, PQ TLS 1.3 & Lean Defaults"]

    E1 --> E2
    E2 --> E3
    E3 --> E4
    E4 --> E5

Era 1: Portable Bytecode and Adaptive Runtime Foundations (JDK 1.0 – 1.4)

Between 1996 and 2002, Java established the architectural contract that still underpins the ecosystem: compile once into platform-neutral .class bytecode and let a managed runtime optimize execution for the host CPU at runtime.


Era 2: Type Safety, Bytecode Extensibility, and the Functional Shift (Java 5 – 8)

During the decade from 2004 to 2014, Java matured from a verbose OOP language into an expressive enterprise and concurrent programming platform.


Era 3: Modularity, Cloud-Native Baseline, and Data-Oriented Programming (Java 9 – 17)

Beginning in 2017, OpenJDK pivoted from multi-year monolithic feature drops to a strict 6-month time-boxed release train, enabling faster, lower-risk delivery of JVM and language capabilities.


Era 4: High-Throughput Concurrency, Native Interop, and Boilerplate Reduction (Java 21 – 25 LTS)

The 2023–2025 releases dismantled three long-standing criticisms of Java: the memory cost of blocking I/O threads, the fragility of JNI native bindings, and the syntactic ceremony required for everyday programs and domain modeling.

Java 21 LTS (September 2023): Project Loom & Algebraic Pattern Matching

// Data-Oriented Programming (Java 17–21): sealed types + records + exhaustive switch
sealed interface PaymentResult permits Approved, Declined {}
record Approved(String authCode, long amountCents) implements PaymentResult {}
record Declined(String reasonCode) implements PaymentResult {}

static String describe(PaymentResult result) {
    return switch (result) {
        case Approved(var code, var cents) -> "Approved (" + code + ") for " + cents + " cents";
        case Declined(var reason) -> "Declined: " + reason;
    };
}

Java 22 – 24 (March 2024 – March 2025): The Runtime Modernization Bridge

Although non-LTS releases, Java 22 through Java 24 finalized critical platform foundations that rolled directly into Java 25 LTS:

Java 25 LTS (September 2025): Leaner Syntax, Scoped Context, and Denser Heaps

Java 25 consolidated the Java 22–24 foundations alongside a cohesive wave of boilerplate-reducing and runtime-efficiency JEPs:

// Java 25 LTS: Compact Source File (JEP 512) implicitly imports module java.base
// (making Instant and List available with zero boilerplate), while JEP 511 imports java.net.http.
import module java.net.http;

static final ScopedValue<String> REQUEST_ID = ScopedValue.newInstance();

void main() {
    var client = HttpClient.newHttpClient();
    var endpoints = List.of("/health", "/ready");
    ScopedValue.where(REQUEST_ID, "req-2026-09").run(() -> {
        IO.println("[" + Instant.now() + "] Trace " + REQUEST_ID.get()
            + " (" + client.version() + ", endpoints=" + endpoints + ")");
    });
}

Era 5: Modern Security, GC-Agnostic AOT, and Container-First Defaults (Java 26 – 27)

Released in March 2026 (Java 26) and September 2026 (Java 27), the post-Java-25 feature releases demonstrate how rapidly the 6-month cadence delivers transport modernization, faster cold starts, quantum-safe cryptography, and safer operational defaults.

Java 26 (March 2026)

// Java 26+: Requesting HTTP/3 with explicit discovery control (JEP 517)
HttpClient client = HttpClient.newBuilder()
    .version(HttpClient.Version.HTTP_3)
    .build();

HttpRequest request = HttpRequest.newBuilder(URI.create("https://example.org/health"))
    .setOption(HttpOption.H3_DISCOVERY, HttpOption.Http3DiscoveryMode.ANY)
    .GET()
    .build();

Java 27 (September 2026)

Modern JVM Defaults at a Glance: Java 21 vs. Java 25 vs. Java 27

Runtime Capability Java 21 LTS Java 25 LTS Java 27 (Feature)
64-Bit Object Header Size 96-bit (compressed) / 128-bit 64-bit opt-in (-XX:+UseCompactObjectHeaders) 64-bit default (JEP 534; opt-out via -XX:-UseCompactObjectHeaders)
Small-Container (<2 vCPU / <1,792 MB) Default GC Serial GC Serial GC G1 GC (JEP 523; opt-out via -XX:+UseSerialGC)
Virtual Threads synchronized Pinning Pins carrier thread (audit hot paths) Unpinned (JEP 491); JNI/FFM/<clinit> only Unpinned (JEP 491); JNI/FFM/<clinit> only
Generational ZGC Status Opt-in (-XX:+ZGenerational) Sole ZGC mode (since Java 24) Sole ZGC mode
AOT Cache & Object Caching AppCDS only Class loading + profiling (-XX:AOTCacheOutput), G1/Parallel/Serial GC-agnostic AOT object caching (JEP 516, works with ZGC)
HTTP Client Transport HTTP/1.1 & HTTP/2 HTTP/1.1 & HTTP/2 HTTP/3 over QUIC (JEP 517, since Java 26)
TLS 1.3 Key Exchange Default Classical ECDHE (x25519 / secp256r1) Classical ECDHE (ML-KEM API available) PQ Hybrid X25519MLKEM768 default (JEP 527)
JFR In-Process Data Redaction Not built-in Not built-in Enabled in-process (JEP 536; tune via -XX:FlightRecorderOptions)

On the Horizon — Active Preview & Incubator JEPs Toward Java 29 LTS (September 2027): Distinguish finalized production capabilities above from actively evolving JDK 27 APIs that still require --enable-preview or --add-modules: Structured Concurrency (JEP 533, 7th Preview), Primitive Types in Patterns (JEP 532, 5th Preview), Lazy Constants (JEP 531, 3rd Preview), PEM Encodings of Cryptographic Objects (JEP 538, 3rd Preview), and the Vector API (JEP 537, 12th Incubator). Treat these as evaluation targets in staging rather than permanent production contracts until finalized.

Together, these five eras show a JVM that has shifted from merely surviving scale to encoding hard-won operational best practices directly into its defaults. Yet defaults are never universal—before choosing a release track, architects must weigh where modern JVM features help and where they introduce new failure modes.


Architectural Trade-Offs and When NOT to Adopt New Defaults

Every major JVM optimization trades one resource—CPU, native RSS, CI complexity, or network compatibility—for another.

Pure Open-Source JVM Garbage Collector NFR Comparison

Garbage Collector Flag Pause Profile Throughput Native Memory / Footprint Overhead Best Suited For When NOT to Use
G1 GC Default (-XX:+UseG1GC) Predictable soft-target (~10–200 ms) High (boosted by JEP 522 in Java 26+) Moderate (remembered sets & card tables) General-purpose microservices, APIs, balanced latency/throughput Ultra-small (<256–512 MB) short-lived CLI/batch containers or strict sub-millisecond p99.9 SLAs
Generational ZGC -XX:+UseZGC (generational-only since Java 24) Ultra-low (<1 ms, largely heap-size independent) Good (slight load-barrier CPU tax) Higher heap headroom needed to avoid allocation stalls Large heaps (multi-GB to TB), latency-sensitive trading/gateway/cache services Tightly memory-constrained containers where spare heap headroom is unavailable
Generational Shenandoah -XX:+UseShenandoahGC -XX:ShenandoahGCMode=generational (product in Java 25) Very low (single-digit ms) Good Moderate-to-high (concurrent evacuation barriers) Low-pause services on modest-to-large heaps needing tighter footprint than ZGC Throughput-maximizing batch pipelines where pause spikes are irrelevant
Parallel GC -XX:+UseParallelGC High stop-the-world pauses Highest raw throughput Low Offline ETL, scientific compute, CI/batch jobs where total wall-clock time beats tail latency User-facing APIs or distributed systems sensitive to heartbeat/lease timeouts
Serial GC -XX:+UseSerialGC Single-threaded stop-the-world Moderate on tiny heaps Lowest native RSS & startup cost Ultra-small (<256–512 MB) single-core CLI tools, sidecars, and short-lived serverless tasks Multi-core or multi-GB production services where stop-the-world pauses degrade SLAs

Four “When NOT to Use” Boundaries

  1. Virtual Threads Anti-Use-Cases & Downstream Blast Radius:
    • Do not use Virtual Threads for CPU-bound workloads (image encoding, cryptography loops, heavy parsing): virtual threads multiplex I/O wait, not CPU cores, and add scheduling overhead over fixed platform-thread pools.
    • Never remove concurrency limits around scarce downstream resources: Because spawning 100,000 virtual threads is cheap, an unthrottled traffic spike can instantly saturate database connection pools or upstream APIs. Replace legacy thread-pool sizing with explicit Semaphore or bulkhead limits.
    • Pinning awareness differs by LTS: On Java 21, audit synchronized blocks wrapping blocking I/O. On Java 25+, JEP 491 resolves synchronized pinning, leaving only native/JNI/FFM downcalls and <clinit> class initialization as pinning sources—monitor them continuously via jdk.VirtualThreadPinned.
  2. Opting Out of Java 27’s Unconditional G1 Default:
    • On ultra-small containers (<256–512 MB RAM) running brief CLI tasks, cron jobs, or tiny sidecars, G1’s remembered sets and card tables consume disproportionate native RSS compared to the live heap. Explicitly setting -XX:+UseSerialGC remains the cleaner choice when startup latency and container memory ceiling matter more than concurrent pause smoothing.
  3. AOT Object Caching (Java 26+) & Compact Object Headers Trade-Offs:
    • Skip AOT Object Caching for long-lived monoliths that restart once a week: maintaining a deterministic CI training run (-XX:AOTCacheOutput=app.aot), shipping larger container image layers, and guarding against classpath/module-graph/flag drift (which silently invalidates the cache) only pays off for autoscaled services, scale-to-zero workers, or rapid rolling deployments.
    • Keep -XX:-UseCompactObjectHeaders in your rollback playbook when validating workloads dominated by huge primitive arrays (where heap savings are near zero) or specialized frameworks that dynamically generate massive class counts approaching the 22-bit compressed class pointer ceiling.
  4. Network & Crypto Blast Radius (HTTP/3 & PQ Hybrid TLS 1.3):
    • Do not force HTTP_3_URI_ONLY across corporate networks, strict egress proxies, or service meshes that drop UDP/443 traffic; use ANY or ALT_SVC discovery and verify cold-start TCP Alt-Svc fallback paths in staging.
    • Test JEP 527 PQ Hybrid TLS 1.3 against every external partner gateway before rolling Java 27 to production: the ~1,500–1,800-byte X25519MLKEM768 ClientHello spans multiple TCP segments across standard 1,500-byte Ethernet MTUs and can stall buggy legacy firewalls or DPI middleboxes. Keep -Djdk.tls.namedGroups=x25519,secp256r1 documented as an emergency scoped fallback while upgrading broken middleboxes.

Understanding OpenJDK Support Cadence and Upgrade Strategy

Choosing a Java version in production is a risk-and-velocity trade-off between multi-year community maintenance stability and rapid access to runtime improvements. Standardizing on pure open-source, vendor-neutral OpenJDK builds such as Eclipse Temurin also avoids the long-term licensing and support traps illustrated in The Day the Observatory Went Dark: A Fable About Vendor Lock-in.

Strategy Target Releases Open-Source Update Lifecycle Best Suited For Primary Operational Trade-Off
LTS Baseline Track Java 21 LTS (jdk21u, Temurin through at least Dec 2029) or Java 25 LTS (jdk25u, Temurin through at least Sep 2031) Minimum 4+ year Eclipse Adoptium commitment; quarterly CPUs (third Tuesday of Jan/Apr/Jul/Oct) via OpenJDK Updates Regulated backends, shared platform base images, multi-team fleets with annual upgrade cycles Defers newer defaults (HTTP/3, GC-agnostic AOT, PQ TLS 1.3, default Compact Object Headers) until Java 29 LTS (Sep 2027)
6-Month Feature Track Java 26 → Java 27 → Java 28 (rolling every 6 months) Exactly 6 months of public updates per feature release (Java 27 through Mar 2027) Automated CI/CD services, high-density container workloads, teams wanting immediate AOT/PQ-TLS/heap wins Requires disciplined semi-annual base-image rollouts; falling behind leaves production runtimes unpatched
flowchart TD
    Start["Choosing a Production OpenJDK Baseline"]
    Q1{"Automated CI/CD with 6-month base-image cutovers?"}
    Q2{"All core bytecode tools ready for Java 27?"}
    Q3{"Need immediate PQ TLS 1.3, HTTP/3, or Any-GC AOT?"}
    Q4{"Legacy fleet with strict freeze on Java 21 dependencies?"}

    J27["Adopt Java 27 (6-Month Track) — Plan March 2027 cutover to Java 28"]
    J25["Adopt Java 25 LTS (Recommended Default) — Temurin support at least Sep 2031"]
    J21["Stay on Java 21 LTS Temporarily — Temurin support at least Dec 2029; plan Java 25 upgrade"]

    Start --> Q1
    Q1 -->|Yes| Q2
    Q1 -->|No| Q4
    Q2 -->|Yes| Q3
    Q2 -->|No| J25
    Q3 -->|Yes| J27
    Q3 -->|No| J25
    Q4 -->|Yes| J21
    Q4 -->|No| J25

When NOT to Adopt the 6-Month Feature Track

Even high-performing teams should pause before moving production fleets onto Java 26/27 if either of these constraints applies:

Why Multi-LTS Hops Hurt More Than Incremental Upgrades

Teams still running Java 8 or Java 11 often delay migration until a community EOL horizon forces a multi-version jump directly to Java 21 or Java 25. That approach concentrates three distinct categories of technical friction into a single high-risk cutover:

  1. Removed Modules & Strong Encapsulation (8 → 17): Removing javax.xml.bind (JAXB), javax.activation, and blocking deep reflection into JDK internals forces dependency upgrades across build plugins, mocking libraries, and serialization frameworks.
  2. Thread & Context Model Shifts (17 → 21/25): Moving high-concurrency services to Virtual Threads requires replacing unbounded ThreadLocal caches with Scoped Values (Java 25) and tuning downstream connection-pool backpressure. Teams targeting Java 21 must additionally audit synchronized pinning hot paths, whereas teams landing on Java 25 LTS benefit from JEP 491 unpinning and only need to watch native/JNI/FFM/<clinit> pinning via JFR’s jdk.VirtualThreadPinned event.
  3. Integrity, Crypto & Security Defaults (21 → 27): JEP 500 final-field mutation warnings, stricter TLS suites, oversized PQ hybrid ClientHello packets, and JFR redaction glob tuning expose outdated serialization libraries, test stubs, or legacy middleboxes that are far cheaper to fix incrementally in staging CI.

The Socio-Technical Reality Behind Slow Upgrades

Dismissing teams still on Java 8 or Java 11 as merely “behind” misses why migrations stall in the real world. Enterprises remain on older LTS lines because organizational incentives reward visible product features over invisible runtime maintenance; because deep transitive dependency trees lock legacy JARs to pre-jakarta.* namespaces (javax.*); because regulated industries pay steep re-certification costs for every runtime shift; and because operators suffer genuine upgrade fatigue after years of chasing framework churn.

Java’s 30-year longevity deserves intellectual humility, not triumphalism. The platform made real architectural missteps along the way—fixed-size PermGen heaps, bundling heavyweight CORBA and Java EE stacks into the core runtime, an overly complex Security Manager that was eventually retired, and a multi-year pendulum swing toward callback-heavy reactive frameworks before Virtual Threads restored readable blocking code. What kept the JVM relevant was not perfection on the first try, but the unglamorous human craft of pragmatic backward compatibility and disciplined, reversible course corrections.


Production Upgrade & Modernization Checklist

Quick Version Selector:

Step-by-Step Upgrade Checklist:

  1. Standardize on a Pure Open-Source OpenJDK Build: Pin reproducible, vendor-neutral Eclipse Temurin (or upstream OpenJDK) container images by immutable digest across local dev, CI, and production, aligned to Adoptium’s quarterly CPU cycle (third Tuesday of Jan/Apr/Jul/Oct).
  2. Audit Near-EOL Community Baselines First: As of November 2026, both Java 11 and Java 17 are less than a year away from their October 2027 Eclipse Temurin / OpenJDK Updates community end-of-availability horizon. Prioritize migrating Java 8, 11, and 17 workloads onto Java 25 LTS (or Java 21 LTS) well ahead of the cutoff.
  3. Run Standard OpenJDK Static Audits Before Bumping Versions: Catch broken internal JDK references and removed APIs early in CI using built-in OpenJDK CLI tools:
    # Flag unsupported internal JDK API usage (sun.* / jdk.internal.*)
    jdeps --jdk-internals --multi-release 25 build/libs/app.jar
    
    # Scan compiled bytecode for deprecated and for-removal APIs
    jdeprscan --release 25 --for-removal build/libs/app.jar
    
  4. Run a Non-Blocking Compatibility Job on Java 27: Even if production stays on Java 25 LTS, run a continuous CI matrix job on Java 27 to surface JEP 500 final-field mutation warnings, bytecode-agent compatibility lag, and JEP 527 PQ Hybrid TLS 1.3 middlebox handshakes months before Java 29 LTS arrives.
  5. Benchmark Runtime Efficiency & AOT Caching Under Realistic Load: Measure live heap usage, native RSS, GC pause distributions, and cold-start time before adopting new flags—remembering to keep training and production classpaths/flags identical for AOT caching:
    # Step 1 (CI training run, JEP 514/516): record AOT cache
    java -XX:AOTCacheOutput=app.aot -jar app.jar --warmup-and-exit
    
    # Step 2 (Production run): reuse AOT cache (add -XX:+UseCompactObjectHeaders on Java 25; default on Java 27)
    java -XX:AOTCache=app.aot -jar app.jar
    

    For ultra-small (<256–512 MB) short-lived containers on Java 27, benchmark -XX:+UseSerialGC against the new G1 default.

  6. Harden Concurrency, Context Propagation, and Observability: Replace mutable ThreadLocal request context with Scoped Values (java.lang.ScopedValue) on Java 25+, bound downstream I/O concurrency with Semaphore bulkheads when enabling Virtual Threads, monitor jdk.VirtualThreadPinned JFR events, and customize JFR In-Process Data Redaction patterns via -XX:FlightRecorderOptions on Java 27+ when diagnostic bundles leave isolated environments.

References

Changelog