Re: Future of JNI in Tomcat

2024-12-10 Thread Rémy Maucherat
On Tue, Dec 10, 2024 at 1:01 PM Rainer Jung wrote: > > Am 12.09.24 um 16:15 schrieb Rémy Maucherat: > > This JEP has the potential to have a significant impact with Tomcat's > > JNI use starting with Java 26. > > https://openjdk.org/jeps/471 > > > > Unsafe.invokeCleaner will be removed, which will

Re: Future of JNI in Tomcat

2024-12-10 Thread Rainer Jung
Am 12.09.24 um 16:15 schrieb Rémy Maucherat: This JEP has the potential to have a significant impact with Tomcat's JNI use starting with Java 26. https://openjdk.org/jeps/471 Unsafe.invokeCleaner will be removed, which will effectively prevent using the direct ByteBuffers that are needed for tom

Re: Future of JNI in Tomcat

2024-10-21 Thread Rainer Jung
Am 12.09.24 um 16:15 schrieb Rémy Maucherat: Hi, ... Another, less problematic, yet still annoying change will be https://openjdk.org/jeps/472 in Java 24+. Basically, the native access flag use will become mandatory. This is a bit annoying since it is not possible to add "--enable-native-acce

Re: Future of JNI in Tomcat

2024-09-13 Thread Rémy Maucherat
On Fri, Sep 13, 2024 at 4:46 PM Christopher Schultz wrote: > > Mark, > > On 9/12/24 12:48, Mark Thomas wrote: > > On 12/09/2024 15:15, Rémy Maucherat wrote: > >> Hi, > >> > >> This JEP has the potential to have a significant impact with Tomcat's > >> JNI use starting with Java 26. > >> https://ope

Re: Future of JNI in Tomcat

2024-09-13 Thread Christopher Schultz
Mark, On 9/12/24 12:48, Mark Thomas wrote: On 12/09/2024 15:15, Rémy Maucherat wrote: Hi, This JEP has the potential to have a significant impact with Tomcat's JNI use starting with Java 26. https://openjdk.org/jeps/471 Unsafe.invokeCleaner will be removed, which will effectively prevent usin

Re: Future of JNI in Tomcat

2024-09-12 Thread Mark Thomas
On 12/09/2024 15:15, Rémy Maucherat wrote: Hi, This JEP has the potential to have a significant impact with Tomcat's JNI use starting with Java 26. https://openjdk.org/jeps/471 Unsafe.invokeCleaner will be removed, which will effectively prevent using the direct ByteBuffers that are needed for

Future of JNI in Tomcat

2024-09-12 Thread Rémy Maucherat
Hi, This JEP has the potential to have a significant impact with Tomcat's JNI use starting with Java 26. https://openjdk.org/jeps/471 Unsafe.invokeCleaner will be removed, which will effectively prevent using the direct ByteBuffers that are needed for tomcat-native. The solution is to use a memor