JVM
Posted nedrain
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了JVM相关的知识,希望对你有一定的参考价值。
JVM Structure
JVM Architecture
Life of JVM
Loading
ClassLoader
public class ClassLoaderTest{
public static void main(String[] args){
// 系统类加载器
ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
System.out.println(systemClassLoader); // sun.misc.Launcher$AppClassLoader@2a139a55
//获取系统类加载器的上级:扩展类加载器
ClassLoader extClassLoader = systemClassLoader.getParent();
System.out.println(extClassLoader); // sun.misc.Launcher$ExtClassLoader@7852e922
// 获取本类的加载器
ClassLoader selfClassLoader = ClassLoaderTest.class.getClassLoader();
System.out.println(selfClassLoader); // sun.misc.Launcher$AppClassLoader@2a139a55
}
}
双亲委派机制
What makes it all the same:
PC register
VM Stack
操作数栈(表达式栈)
动态链接
Native Method Interface
Native Method Stack
Default Garbage Collector : G1
以上是关于JVM的主要内容,如果未能解决你的问题,请参考以下文章