Repository navigation
4.11.0: Hot-Path Allocation, OpenJ9 JIT & Reusable JNI Output Buffer
Upgrade
Set com.reactor:rust-java-rest and the REST platform parent/BOM to 4.11.0,
com.reactor:java-rust-cache to 0.11.0, and com.reactor:java-rust-dubbo to 0.11.0.
Use the native libraries packaged in this release (rust-spring 38dbc92). If you use
-Drust.lib.path, replace the explicit DLL/SO/dylib as part of the upgrade.
JNI remains the default and primary bridge (K-001). Existing ABI contracts are unchanged
(REST 29, Dubbo 7, Redis 6, Glowroot 6). Reusable worker output buffers negotiate
additively during passNativeBridgeClass with automatic fallback on older ABI-29 JARs.
Handler signatures, annotations, and HTTP payloads do not change.
What Changed
Every change below was verified with concurrent paired A/B gates on EmaTech
(OpenJ9 21 local JIT -XX:-UseJITServer, swapped slots per pair, 8/8 valid pairs,
0 errors):
| Area | Measured EmaTech Paired A/B Effect |
|---|---|
REST zero-alloc hot path & OpenJ9 JIT IR reduction (RawResponse zero-clone headers & lock-free close, JsonBufferWriter single ThreadLocal + bulk writeLong, DslJsonService ClassValue codec cache, Metrics atomic hot path, AsyncFrameBufferPool stack pooling, LongKeyAdmission atomic counters) |
faz2-rest-c16 (16 conn): RPS +3.57% (8/8 wins), p99 -6.42% (median -10.38%), steady RSS -0.96 MiB, post-idle anon -1.17 MiB, warmup lifetime peak -12.32 MiB |
Reusable worker-local 16 KiB JNI DirectByteBuffer + startup-bound ResponseKind dispatch (rust-spring WorkerScratchBuffer + JniFrameBuf::Owned zero-second-copy body slice; HandlerRegistry compact hot-path ResponseKind check + out-of-line writeSecondaryResponseKind) |
faz4-sync-c16 (16 conn): RPS +3.52% (median +4.14%, 95% CI [1.0021, 1.0693] PASS), app CPU/req -3.93% (57.55 -> 55.29 us), p99 -0.88% (median -3.95%), steady RSS -0.05 MiB PASS, lifetime peak -0.98 MiB (72.03 -> 71.05 MiB) |
Native Build
Packaged binaries for all four supported platforms (linux-x64, linux-arm64, macos-arm64,
windows-x64) are synchronized from rust-spring revision 38dbc92f78ad27fd2639af137c0aecc6a1f25f36
with SHA-256 provenance verification and Linux GLIBC 2.17 minimum compatibility.
Not Included
Measured effects apply to the verified paired benchmark cells above, not as a uniform guarantee
for arbitrary workloads.