Skip to content

Commit

Permalink
update GC algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
flycash committed Jun 4, 2021
1 parent b09a997 commit f7a1547
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 22 deletions.
3 changes: 2 additions & 1 deletion gc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ GC 在特定的语言里面,是一个极其重要的面试知识点,比如

GC 的面试,主要是从三个维度进行考察:
1. GC 的算法:例如引用计数,标记清扫,标记整理等,纯粹从算法的层面考察大家;
2. GC 的实现:例如 JVM 中 hotspot 实现的 CMS,G1等,重点考察这些实现的具体步骤,部分情况下会涉及细节;
2. GC 的实现:例如 JVM 中 HotSpot 实现的 CMS,G1等,重点考察这些实现的具体步骤,部分情况下会涉及细节;
3. 实践:集中在,DEBUG 和调优。DEBUG是指,实践中是否遇到多 GC 相关的问题,如果遇到了,怎么解决的;调优则是发现实际中的 GC 的效果不理想,如何优化的问题;

因此 GC 要如何复习,才能面试顺利呢?
Expand All @@ -25,6 +25,7 @@ GC 的面试,主要是从三个维度进行考察:
2. 别人知道的,我知道更多细节;
3. 结合实际
4. 结合内存分配器
5. 横向比较

前两条很好理解,后一条如何理解呢?要知道,面试官面 GC,不管是面算法,面实现还是面调优,他就是想确认你能不能解决 GC 的问题。所以结合实际能够让他知道,你确实是知道如何解决 GC 问题的。

Expand Down
Loading

0 comments on commit f7a1547

Please sign in to comment.