Open
Labels
Type: bugSomething isn't working
Description
Describe the bug, including details regarding any error messages, version, and platform.
In JDK 24, JEP 498: Warn upon Use of Memory-Access Methods in sun.misc.Unsafe deprecates several memory access methods in sun.misc.Unsafe for removal.
These methods are used by arrow here https://github.com/laurentgo/arrow/blob/fa8ebdebd1109217a6ac1ae2f173e1ab9d400d82/java/memory/memory-core/src/main/java/org/apache/arrow/memory/util/MemoryUtil.java#L30
apache/arrow#43479 is related, it refactored uses of these APIs to consolidate the references in MemoryUtil, and mentions that change is
a first step towards switching from sun.misc.Unsafe to safer memory access methods (which may become a requirement at some point as discussed in JEP 471 )
Are there plans to switch to safer memory access methods?
Component(s)
Java
Reacted by Mateusz "Serafin" Gajewski
Activity
vibhatha commentedon Jan 15, 2025
@cushon Yes, we have discussed this in the past and there have been several efforts started to do this migration. But this may require some incremental improvements.
Please refer to the discussions and older PRs focused on this direction.
jbonofre commentedon Feb 5, 2025
I'm resuming our work on this one.
I think it's an important one as it "blocks" the update to Java 22/23.
wendigo commentedon Feb 15, 2025
@jbonofre we (Trino project) can help test it out since we are now on JDK 23 and moving soon to 24
jarohen commentedon Nov 15, 2025
XT are more'n happy to help test this too