Skip to content

Commit

Permalink
[docs add]Java 22 & 23 新特性概览
Browse files Browse the repository at this point in the history
  • Loading branch information
Snailclimb committed Sep 20, 2024
1 parent 1c404b8 commit 88aa050
Show file tree
Hide file tree
Showing 6 changed files with 432 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ JVM 这部分内容主要参考 [JVM 虚拟机规范-Java8](https://docs.oracle.
- [Java 19 新特性概览](./docs/java/new-features/java19.md)
- [Java 20 新特性概览](./docs/java/new-features/java20.md)
- [Java 21 新特性概览](./docs/java/new-features/java21.md)
- [Java 22 & 23 新特性概览](./docs/java/new-features/java22-23.md)

## 计算机基础

Expand Down
1 change: 1 addition & 0 deletions docs/.vuepress/sidebar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export default sidebar({
"java19",
"java20",
"java21",
"java22-23",
],
},
],
Expand Down
1 change: 1 addition & 0 deletions docs/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ JVM 这部分内容主要参考 [JVM 虚拟机规范-Java8](https://docs.oracle.
- [Java 19 新特性概览](./java/new-features/java19.md)
- [Java 20 新特性概览](./java/new-features/java20.md)
- [Java 21 新特性概览](./java/new-features/java21.md)
- [Java 22 & 23 新特性概览](./java/new-features/java22-23.md)

## 计算机基础

Expand Down
2 changes: 1 addition & 1 deletion docs/java/new-features/java19.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Java 程序可以通过该 API 与 Java 运行时之外的代码和数据进行

Foreign Function & Memory API (FFM API) 定义了类和接口:

- 分配外部内存:`MemorySegment``MemoryAddress``SegmentAllocator`
- 分配外部内存:`MemorySegment``MemoryAddress``SegmentAllocator`
- 操作和访问结构化的外部内存:`MemoryLayout`, `VarHandle`
- 控制外部内存的分配和释放:`MemorySession`
- 调用外部函数:`Linker``FunctionDescriptor``SymbolLookup`
Expand Down
2 changes: 1 addition & 1 deletion docs/java/new-features/java21.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ static String formatterPatternSwitch(Object obj) {
}
```

## JEP 442: 外部函数和内存 API(第三次预览)
## JEP 442外部函数和内存 API(第三次预览)

Java 程序可以通过该 API 与 Java 运行时之外的代码和数据进行互操作。通过高效地调用外部函数(即 JVM 之外的代码)和安全地访问外部内存(即不受 JVM 管理的内存),该 API 使 Java 程序能够调用本机库并处理本机数据,而不会像 JNI 那样危险和脆弱。

Expand Down
Loading

0 comments on commit 88aa050

Please sign in to comment.