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
    关注
    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!