Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#511 4 bình luận 1 reaction 1 người được giao Xem trên GitHub

@jbonofre đang làm issue này rồi.

Từ ngày 5/2/2025.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
Java
Star
95
Fork
154
Merge trung bình
2 ngày 10 giờ
Pull request đã merge (30 ngày)
11

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/arrow-java

Tất cả issue của apache/arrow-java

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.