栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

G1 GC是否具有最大区域大小或最大区域数量?

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

G1 GC是否具有最大区域大小或最大区域数量?

从HotSpot
JVM来源

  // Minimum region size; we won't go lower than that.  // We might want to decrease this in the future, to deal with small  // heaps a bit more efficiently.  static const size_t MIN_REGION_SIZE = 1024 * 1024;  // Maximum region size; we don't go higher than that. There's a good  // reason for having an upper bound. We don't want regions to get too  // large, otherwise cleanup's effectiveness would decrease as there  // will be fewer opportunities to find totally empty regions after  // marking.  static const size_t MAX_REGION_SIZE = 32 * 1024 * 1024;  // The automatic region size calculation will try to have around this  // many regions in the heap (based on the min heap size).  static const size_t TARGET_REGION_NUMBER = 2048;
  • MIN_REGION_SIZE
    (1MB)和
    MAX_REGION_SIZE
    (32MB)是硬限制;
  • TARGET_REGION_NUMBER
    如果在JVM选项中未指定默认区域大小,则该提示仅用于计算默认区域大小。实际数字可能超过此值。


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/483766.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号