JVM虚拟机
2020-04-26 00:34:06   12  举报             
     
         
 JVM虚拟机详解
    作者其他创作
 大纲/内容
 FILO      栈(线程)
    public class Math {    public static final int initData = 666;    public int computer(){        int a = 1;        int b = 2;        int c = (a+b) * 10;        return c;    }    public static void main(String[] arge){        Math math = new Math();        math.computer();        System.out.println(\"text\");    }} 
  full gc
  本地方法栈
  栈(线程)
  局部变量表
  程序计数器
  Eden(8/10)
  修改
  方法出口
  文件区(元空间)常量、静态变量、类信息
  to(1/10)
  .class文件
  线程1
  操作数栈
  动态链接
  main()->栈帧
  istore_2
  istore_1
  运行时数据区(内存模型)
  JVM虚拟机
  字节码执行引擎
  math
  堆
  b=2
  堆:存放实例化对象的地  址,类似于指针
  执行
  程序计数器=4
  本地文件栈
  年轻代(1/3)【默认】
  a=1
  computer()->栈帧
  Survivor
  本地文件栈:在以前,为了调用其他语言(例:C语言)的方法而开发的本地文件栈。当需要访问其他语言(例:C语言)时所要用到的栈
  JVM
  线程2
  老年代(2/3)【默认】
  类装载子系统
  iconst_1
  from(1/10)
  minor gc(垃圾回收机制)
  iconst_2
    
    收藏 
      
    收藏 
     
 
 
 
 
  0 条评论
 下一页
 为你推荐
 查看更多
    
   
  
  
  
  
  
  
  
  
 