JVM总结-个人向

2021-03-15  本文已影响0人  czczccz

内存区域

jvm体系结构概述

GC

类加载

  try {
   if (parent != null) {
   c = parent.loadClass(name, false);//调用父类
   } else {
   c = findBootstrapClassOrNull(name);//父类为空,使用启动类加载器
   }
   } catch (ClassNotFoundException e) { //父类加载失败
   // ClassNotFoundException thrown if class not found
   // from the non-null parent class loader
   }
  
   if (c == null) { //调用自己的findclass
   // If still not found, then invoke findClass in order
   // to find the class.
   long t1 = System.nanoTime();
   c = findClass(name);
   ...
   }
上一篇 下一篇

猜你喜欢

热点阅读