Memory-Access Methods in sun.misc.Unsafe are deprecated for removal

未关闭
#511 4 条评论 1 个 reaction 已指派 1 人 在 GitHub 查看

@jbonofre 已经在做这个了。

开始于 2025年2月5日。

评估

这个 Issue 还没有评估数据。

描述

Type: bug
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

https://github.com/apache/arrow/issues/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

主要语言
Java
星标
95
派生
154
平均合并
2 天 10 小时
30 天内合并 PR
11

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/arrow-java 的其他 Issue

查看 apache/arrow-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。