![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jvm
文章平均质量分 64
xuhang1128
这个作者很懒,什么都没留下…
展开
-
java自带的classloader
sun jre本身的classloader主要包含三个loader,分别是1. Bootstrap class loader->C代码 (加载%java_home%/lib/*)2. Extensions class loader->ExtClassLoader (%java_home%/lib/ext/*)3. System class loader->Ap...原创 2012-11-09 16:21:06 · 90 阅读 · 0 评论 -
Classloader委托加载模型的反向问题
Classloader委托加载模型的反向问题 英文就是 back door around the classloading delegation scheme当A类引用到B类,那么加载B类的classloader就是当时A的classloader,下面一个例子 public class A { public static void main(String[] args) {...原创 2012-11-09 22:36:32 · 174 阅读 · 0 评论 -
JVM GC Root对象
JVM对那些没有根引用的对象进行来及回收,也就是无法从根对象中追述的对象。JVM垃圾回收的根对象的范围有以下几种:1、栈中引用的对象,引用是在栈帧中的本地变量表中的,真正的对象在堆中2、方法区perm中的类静态属性引用的对象,以及常量引用的对象3、本地方法栈中JNI(Native方法)的引用的对象 参考文献:http://javabook.compuware...原创 2013-12-11 10:23:22 · 339 阅读 · 0 评论 -
ClassNotFoundException vs NoClassDefFoundError
java.lang.ClassNotFoundException This exception indicates that the class was not found on the classpath. This indicates that we were trying to load the class definition, and the class did not exist...原创 2016-09-01 14:33:43 · 179 阅读 · 0 评论