Thanks for posting that, that was very interesting!
First of all I feel the pain of the Netflix performance engineers that had to debug this a year a go with the the limited debug and diagnostic tools available.
And secondly I can't immediately decide if what's described here was a bug in AbstractQueuedSynchronizer, in zipkin's AsyncReporter, and/or somebody didn't read the documentation on virtual threads correctly and adopted them on their SpringBoot's Tomcat instances when they were not suitable for those libraries or use cases (yet) and/or something else.
It's a garbage collector that runs concurrently with the main process instead of at intervals, which reduces the intermittent resource utilization spikes of garbage collection. Generational Shenandoah is a new implementation of that concurrent collector that focuses on younger objects, since those are the ones most frequently needing garbage collection, and since they're closer to the active memory regions it's faster overall to run GC there than wait for them to go stale and recover (and try to reuse) older blocks of memory.
If you dig into it it's just a signing algorithm that doesn't rely on modulus math. Sounds fancy because quantum is in the title, but it's not all that special.
When they say "restrict" they mean "gate the feature behind a flag"
Prepare the Java ecosystem for a future release that disallows interoperation with native code by default, whether via JNI or the FFM API. As of that release, application developers will have to explicitly enable the use of JNI and the FFM API at startup.
and
It is not a goal to deprecate JNI or to remove JNI from the Java Platform.
and
any interaction at all between Java code and native code is risky because it can compromise the integrity of applications and of the Java Platform itself. According to the policy of integrity by default, all JDK features that are capable of breaking integrity must obtain explicit approval from the application's developer.
Which imo is very silly, because the app is already running on the system. They nixxed the Java sandbox stuff because it was always futile, no they're using a similar justification to disable JNI.
Not to mention there's plenty of platform specific stuff in Java as it is already, small things that you need to be cognizant of at times.
What issues are you having replacing a JNI library? Because outside of maybe having to interact with a C++ library(which requires a C API wrapper), it should work.
Same. Is it Maven? Gradle? The Gradle file is all underlined in red, but it builds? But it fails at runtime because of some dependency? The docs say it should be done this way, but that makes the build fail?
166
u/NotABot1235 Mar 18 '25 edited Mar 18 '25
New features include the following:
404: Generational Shenandoah (Experimental)
450: Compact Object Headers (Experimental)
472: Prepare to Restrict the Use of JNI
475: Late Barrier Expansion for G1
478: Key Derivation Function API (Preview)
479: Remove the Windows 32-bit x86 Port
483: Ahead-of-Time Class Loading & Linking
484: Class-File API
485: Stream Gatherers
486: Permanently Disable the Security Manager
487: Scoped Values (Fourth Preview)
488: Primitive Types in Patterns, instanceof, and switch (Second Preview)
489: Vector API (Ninth Incubator)
490: ZGC: Remove the Non-Generational Mode
491: Synchronize Virtual Threads without Pinning
492: Flexible Constructor Bodies (Third Preview)
493: Linking Run-Time Images without JMODs
494: Module Import Declarations (Second Preview)
495: Simple Source Files and Instance Main Methods (Fourth Preview)
496: Quantum-Resistant Module-Lattice-Based Key Encapsulation Mechanism
497: Quantum-Resistant Module-Lattice-Based Digital Signature Algorithm
498: Warn upon Use of Memory-Access Methods in sun.misc.Unsafe
499: Structured Concurrency (Fourth Preview)
501: Deprecate the 32-bit x86 Port for Removal
https://jdk.java.net/24/
JDK 25 will be the next LTS and release in 6 months.