05 2021 档案
摘要:现在不太清楚, public static void main(String[] args) { Object object=new Object(); System.out.println("before synchronized start"); synchronized (object) {
阅读全文
摘要:CAS的意思是campare and sweep比较交换 这个如果不用代码会比较抽象,那么在源码中进行解释 void ATTR ObjectMonitor::enter(TRAPS) { // The following code is ordered to check the most commo
阅读全文
摘要:(gdb) p obj $15 = (oopDesc *) 0xf3885d08 (gdb) p * obj $16 = { _mark = 0x70dea4e01, _metadata = { _klass = 0x2000070e, _compressed_klass = 536872718 }
阅读全文
摘要:进入Eden()->clean()函数 void EdenSpace::clear(bool mangle_space) { ContiguousSpace::clear(mangle_space); set_soft_end(end()); } 进入 void ContiguousSpace::c
阅读全文
摘要:粘贴源码 package com.test; import java.util.Random; public class Test { static int number=12; private int age; private String name; public Test(int i, Str
阅读全文