Skip to content

Commit

Permalink
Update JEP 471 information in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcono1234 committed Jun 9, 2024
1 parent 13cb9d1 commit b8fd908
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ The issue with `Unsafe` is that it does not detect out-of-bounds reads and write
validation. Therefore invalid arguments can break the correctness of an application or even represent a security
vulnerability.

Note that the memory access methods of `Unsafe` will probably be deprecated and removed in future JDK versions, see
[JEP draft JDK-8323072](https://openjdk.org/jeps/8323072). Libraries targeting newer Java versions should
prefer [`java.lang.foreign.MemorySegment`](https://docs.oracle.com/en/java/javase/22/docs/api/java.base/java/lang/foreign/MemorySegment.html),
Note that the memory access methods of `Unsafe` have been deprecated for JDK 23 and will be removed in a future JDK
version, see [JEP 471](https://openjdk.org/jeps/471). Libraries targeting newer Java versions should prefer
[`java.lang.foreign.MemorySegment`](https://docs.oracle.com/en/java/javase/22/docs/api/java.base/java/lang/foreign/MemorySegment.html),
which is a safer alternative to `Unsafe`.

### Why this sanitizer?
Expand Down

0 comments on commit b8fd908

Please sign in to comment.