Black Gold 2017-02-22 16:09 采纳率: 0%
浏览 930

HotSpot虚拟机关于垃圾回收的几个问题

HotSpot虚拟机关于垃圾回收的几个问题
假如from-survivor space有些对象达到晋升到老年代的条件,而且老年代有足够的空间。
那么当Minor GC发生时:
1、from-survivor space那些达到晋升条件的对象什么时候会进入老年代;
2、Eden space和from-survivor space的对象何时进入to-survivor space,进入时是否有优先级;
3、如果to-survivor space空间不足时剩余的对象如何处理;
4、整个过程的执行顺序是什么。

HotSpot virtual machine on garbage collection of several issues
If from-survivor space some objects to reach the conditions of the old generation, and the old generation has enough space.
Then when the Minor GC occurs:
1) from-survivor space Those who reach the conditions of promotion when the object will into the old age;
2) Eden space and from-survivor space when the object into the to-survivor space, whether there is priority to enter;
3) If the to-survivor space fills up, remaining objects will be how to deal with;
4) what is the order of the whole process.

  • 写回答

2条回答 默认 最新

  • zqbnqsdsmd 2017-02-22 19:18
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 import arcpy出现importing _arcgisscripting 找不到相关程序
  • ¥15 onvif+openssl,vs2022编译openssl64
  • ¥15 iOS 自定义输入法-第三方输入法
  • ¥15 很想要一个很好的答案或提示
  • ¥15 扫描项目中发现AndroidOS.Agent、Android/SmsThief.LI!tr
  • ¥15 怀疑手机被监控,请问怎么解决和防止
  • ¥15 Qt下使用tcp获取数据的详细操作
  • ¥15 idea右下角设置编码是灰色的
  • ¥15 全志H618ROM新增分区
  • ¥15 在grasshopper里DrawViewportWires更改预览后,禁用电池仍然显示