
JVM
文章平均质量分 93
话不投机头打歪
这个作者很懒,什么都没留下…
展开
-
JVM的垃圾回收器(GC)
1.堆内存模型 1.分带收集的垃圾回收器 1.1新生带 1.1.1Serial 1.1.2ParNew 1.1.3Parallel Scavenge 1.2老年代 1.2.1Serial Old 1.2.2CMS 1.2.3Parallel Old 内存溢出定位原创 2020-06-07 13:17:48 · 193 阅读 · 0 评论 -
synchronized锁升级过程
JAVA虚拟机堆synchronized的优化 对象头与monitor MarkWord区 是存在在JAVA对象头中的一个区域大小为8字节 里面包含了 1.锁信息 2.GC信息 3.HashCode(如果有调用) public class Demo1 { public static void main(String[] args) throws IOException { Object o = new Object(); System.out.println(Clas原创 2020-05-29 21:39:15 · 705 阅读 · 1 评论 -
结合官方《JAVA虚拟机规范》来验证JVM中运行时常量池的存放位置
3.5.5 Runtime Constant Pool A runtime constant pool is a per-class or per-interface runtime representation of the constant_pool table in a class file (§4.4). It contains several kinds of constants, ranging from numeric literals known at compile time to met原创 2020-05-29 14:52:24 · 343 阅读 · 0 评论