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

オープン
#511 コメント 4 件 リアクション 1 件 担当者 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時間
マージ済み PR(30日)
11

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/arrow-java のほかの issue

apache/arrow-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。