Skip to content

Commit

Permalink
some fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yoa1226 committed Oct 15, 2024
1 parent 6f42d0b commit 9e1a289
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# yoa1226.github.io
# github.io

Blog contents for weird.github.io.

Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ url: "https://yoa1226.github.io/" # the base hostname & protocol for your site,
theme: minima

author:
name: yoa
name: weided
email: [email protected]

minima:
Expand Down
16 changes: 8 additions & 8 deletions _posts/2024-08-01-region-pinning-for-g1.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ date: 2024-08-01 11:00:00 +0200
tags: [GC, G1, JEP]
---

JDK 22 在 2024 年 3 月发布,其中 [JEP 423: Region Pinning for G1](https://openjdk.org/jeps/423) 对 G1 进行了增强,大大增加了 G1 的可用性。本文抽丝剥茧带领读者了解此 JEP 的来龙去脉。
JDK 22 在 2024 年 3 月发布,其中 [JEP 423: Region Pinning for G1](https://openjdk.org/jeps/423) 对 G1 进行了优化,增强了 G1 的可用性。本文将从源码的角度带领读者了解 JEP 423 的来龙去脉。

> G1 全称叫 Garbage-First Garbage Collector,后面文章都简称 G1。
Expand Down Expand Up @@ -208,13 +208,13 @@ jdk21 git:(master) make
➜ jdk21 git:(master) ll build/macosx-aarch64-server-slowdebug/jdk
total 16
# 省略部分.....
drwxr-xr-x 31 yoa staff 992B Oct 13 01:46 bin
drwxr-xr-x 8 yoa staff 256B Oct 13 01:43 conf
drwxr-xr-x 8 yoa staff 256B Oct 13 01:43 include
drwxr-xr-x 54 yoa staff 1.7K Oct 13 01:47 lib
drwxr-xr-x 3 yoa staff 96B Oct 13 01:46 man
drwxr-xr-x 71 yoa staff 2.2K Oct 13 01:45 modules
-rw-r--r-- 1 yoa staff 178B Oct 13 01:43 release
drwxr-xr-x 31 yyy staff 992B Oct 13 01:46 bin
drwxr-xr-x 8 yyy staff 256B Oct 13 01:43 conf
drwxr-xr-x 8 yyy staff 256B Oct 13 01:43 include
drwxr-xr-x 54 yyy staff 1.7K Oct 13 01:47 lib
drwxr-xr-x 3 yyy staff 96B Oct 13 01:46 man
drwxr-xr-x 71 yyy staff 2.2K Oct 13 01:45 modules
-rw-r--r-- 1 yyy staff 178B Oct 13 01:43 release
```
#### 再次运行
Expand Down
4 changes: 2 additions & 2 deletions _posts/2024-08-05-g1-gc-important-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ card table 与 heap 示意图如下:

### 线程缓冲区

`thread` 类定义了一块线程本地数据块,长度为 344 字节,主要用于优化性能。在 G1 中数据块分成三个部分:
`thread` 类定义了一块线程本地缓冲区,长度为 344 字节,主要用于优化性能。在 G1 中数据块分成三个部分:

1. `_satb_mark_queue`:在并发标记中,实现 (Snapshot-at-the beginning)算法的队列,用于写前屏障(pre-write)。

Expand Down Expand Up @@ -526,7 +526,7 @@ Code:
```cpp
// jdk/src/hotspot/share/interpreter/zero/bytecodeInterpreter.cpp
// obj是接收者对象,field_offset
obj->obj_field_put(field_offset, val); #
obj->obj_field_put(field_offset, val);
```
在我们的例子中,上面代码中的 `obj` 是 `PutFieldWriteBarrierTest` 的实例,`field_offset` 是属性`myField` 在对象实例中的位置。`val` 是 `new Object()` 。
Expand Down

0 comments on commit 9e1a289

Please sign in to comment.