Skip to content

Commit

Permalink
wang, fix: 图片不显示
Browse files Browse the repository at this point in the history
  • Loading branch information
lbwanga committed Sep 6, 2024
1 parent b737633 commit 6db972d
Show file tree
Hide file tree
Showing 65 changed files with 7 additions and 4,051 deletions.
10 changes: 5 additions & 5 deletions docs/Java/JUC.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ JVM 基于进入和退出 Monitor 对象来实现方法同步和代码块同步

synchronized 用的锁是存在 Java 对象头里的。如果对象是数组类型,则虚拟机用 3个字宽(Word)存储对象头,如果对象是非数组类型,则用 2 字宽存储对象头。在 32 位虚拟机中,1 字宽等于 4 字节,即 32bit;64位虚拟机下,一个字宽大小为 8 字节。

![](JUC\对象头.jpeg)
![](.\JUC\对象头.jpeg)

Java 对象头里的 Mark Word 里默认存储对象的 HashCode、分代年龄和锁标记位。

![](JUC\对象头存储结构.jpeg)
![](.\JUC\对象头存储结构.jpeg)

在运行期间,Mark Word 里存储的数据会随着锁标志位的变化而变化。

![](JUC\锁状态变化.jpeg)
![](.\JUC\锁状态变化.jpeg)

当对象状态为偏向锁时,Mark Word存储的是偏向的线程ID。

Expand Down Expand Up @@ -79,7 +79,7 @@ Java 对象头里的 Mark Word 里默认存储对象的 HashCode、分代年龄

3. 唤醒当前线程,将当前锁升级成轻量级锁。

![](JUC\偏向锁的获得和撤销.jpeg)
![](.\JUC\偏向锁的获得和撤销.jpeg)

**关闭偏向锁**

Expand All @@ -100,7 +100,7 @@ Java 对象头里的 Mark Word 里默认存储对象的 HashCode、分代年龄

轻量级解锁时,会使用原子的 CAS 操作将 Displaced Mark Word 替换回到对象头, 如果成功,则表示没有竞争发生。如果失败,表示当前锁存在竞争,锁就会膨胀成重量级锁。

![](JUC\轻量级锁.jpeg)
![](.\JUC\轻量级锁.jpeg)



Expand Down
4 changes: 2 additions & 2 deletions docs/Java/Java.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ super的两个含义:

**引用拷贝**:引用拷贝就是两个不同的引用指向同一个对象。

![](.\Java\shallow&deep-copy.png)
![](.\images\shallow&deep-copy.png)



Expand Down Expand Up @@ -591,7 +591,7 @@ enum Season

## 异常

![](Java\异常.jpeg)
![](.\images\异常.jpeg)

执行过程中发生的异常分为两大类

Expand Down
Binary file added docs/Java/images/shallow&deep-copy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/Java/images/异常.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,462 changes: 0 additions & 1,462 deletions docs/MySQL/MySQL.md

This file was deleted.

Binary file removed docs/MySQL/MySQL/COMPACT.drawio.webp
Binary file not shown.
Binary file removed docs/MySQL/MySQL/count.webp
Binary file not shown.
Binary file removed docs/MySQL/MySQL/explain.webp
Binary file not shown.
Binary file removed docs/MySQL/MySQL/mvcc.webp
Binary file not shown.
Binary file removed docs/MySQL/MySQL/mysql查询流程.webp
Binary file not shown.
Binary file removed docs/MySQL/MySQL/null值列表4.webp
Binary file not shown.
Binary file removed docs/MySQL/MySQL/orderby优化.webp
Binary file not shown.
Binary file removed docs/MySQL/MySQL/read_view.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/redo_log.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/t_test.webp
Binary file not shown.
Binary file removed docs/MySQL/MySQL/update.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/主备流程.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/事务a加锁分析.webp
Binary file not shown.
Binary file removed docs/MySQL/MySQL/双M结构主备.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/变长字段长度列表1.webp
Binary file not shown.
Binary file removed docs/MySQL/MySQL/唯一索引加锁.drawio.webp
Binary file not shown.
Binary file removed docs/MySQL/MySQL/基础架构.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/并行复制.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/幻读发生.drawio.webp
Binary file not shown.
Binary file removed docs/MySQL/MySQL/架构.jpeg
Binary file not shown.
Binary file removed docs/MySQL/MySQL/查询慢.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/案例一.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/案例七.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/案例三.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/案例九.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/案例二.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/案例五.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/案例八.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/案例六.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/案例四.png
Binary file not shown.
Binary file removed docs/MySQL/MySQL/聚集索引和二级索引.webp
Binary file not shown.
Binary file removed docs/MySQL/MySQL/表空间结构.drawio.webp
Binary file not shown.
Binary file removed docs/MySQL/MySQL/隔离级别.webp
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2,574 changes: 0 additions & 2,574 deletions docs/Redis/Redis.md

This file was deleted.

Binary file removed docs/Redis/Redis/3层跳表-跨度.drawio.webp
Binary file not shown.
Binary file removed docs/Redis/Redis/SDS.webp
Binary file not shown.
Binary file removed docs/Redis/Redis/aofewwrite.png
Binary file not shown.
Binary file removed docs/Redis/Redis/lazyfree.png
Binary file not shown.
Binary file removed docs/Redis/Redis/listpack.webp
Binary file not shown.
Binary file removed docs/Redis/Redis/quicklist.webp
Binary file not shown.
Binary file removed docs/Redis/Redis/redisson分布式锁.png
Binary file not shown.
Binary file removed docs/Redis/Redis/rehash.webp
Binary file not shown.
Binary file removed docs/Redis/Redis/scan.png
Binary file not shown.
Binary file removed docs/Redis/Redis/slot.jpg
Binary file not shown.
Binary file removed docs/Redis/Redis/slot.png
Diff not rendered.
Binary file removed docs/Redis/Redis/stream.png
Diff not rendered.
Binary file removed docs/Redis/Redis/五种数据类型.webp
Binary file not shown.
Binary file removed docs/Redis/Redis/升级操作.webp
Binary file not shown.
Binary file removed docs/Redis/Redis/压缩列表.webp
Binary file not shown.
Binary file removed docs/Redis/Redis/后台线程.webp
Binary file not shown.
Binary file removed docs/Redis/Redis/哈希表.webp
Binary file not shown.
Binary file removed docs/Redis/Redis/数据结构.webp
Binary file not shown.
Binary file removed docs/Redis/Redis/跳表.webp
Binary file not shown.
Binary file removed docs/Redis/Redis/逻辑过期.png
Diff not rendered.
Binary file removed docs/Redis/Redis/链表.webp
Binary file not shown.
Binary file removed docs/Redis/Redis/阿里云Redis开发规范.jpg
Diff not rendered.
8 changes: 0 additions & 8 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,6 @@ nav:
- Java基础: Java/Java.md
- Java集合: Java/Java集合.md
- JUC: Java/JUC.md
# - JVM: JVM/JVM.md
# - Spring: Spring/Spring6.md
# - SpringBoot: SpringBoot/SpringBoot3.md
- MySQL: MySQL/MySQL.md
# - Redis: Redis/Redis.md
# - MQ:
# - RabbitMQ: MQ/RabbitMQ.md
# - RocketMQ: MQ/RocketMQ.md
- 设计模式: 设计模式/设计模式.md

# Theme
Expand Down

0 comments on commit 6db972d

Please sign in to comment.